Skip to content

Commit

Permalink
Fix panic on file backend change
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Gubergrits committed Jun 1, 2018
1 parent 8df7906 commit 387686c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/file/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ func nodeWalk(node interface{}, key string, vars map[string]string) error {

func (c *Client) watchChanges(watcher *fsnotify.Watcher, stopChan chan bool) ResultError {
outputChannel := make(chan ResultError)
defer close(outputChannel)
go func() error {
defer close(outputChannel)
for {
select {
case event := <-watcher.Events:
Expand Down

0 comments on commit 387686c

Please sign in to comment.