summaryrefslogtreecommitdiff
path: root/src/nshd
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd')
-rw-r--r--src/nshd/hackers_git/hackers_watch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nshd/hackers_git/hackers_watch.go b/src/nshd/hackers_git/hackers_watch.go
index 3d72f94..f902229 100644
--- a/src/nshd/hackers_git/hackers_watch.go
+++ b/src/nshd/hackers_git/hackers_watch.go
@@ -137,7 +137,7 @@ func (o *Hackers) worker() {
if err != nil {
worker_error("failed to load %q: %v", o.cfg.Yamldir, err)
}
- for event, _ := o.in_fd.Read(); event != nil; event, _ = o.in_fd.Read() {
+ for event, err := o.in_fd.Read(); err == nil; event, err = o.in_fd.Read() {
switch event.Wd {
case o.in_wd_yaml:
// handle updates to yaml files