From 44db48cc894389bf93e159fa6e3b531a15538cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 3 Jul 2022 13:34:49 +0200 Subject: [PATCH] watcher: don't exit event loop if there is no connection for a path --- watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher.go b/watcher.go index 2eae630..cd517ff 100644 --- a/watcher.go +++ b/watcher.go @@ -150,7 +150,7 @@ func (s *server) watch(inotifyFd int) { conns := connsForPath[path] if conns == nil { // watcher has been already deregistered - return + continue } for idx, c := range conns { if c.fd == fd {