watcher: don't exit event loop if there is no connection for a path

main
Jörg Thalheim 2 years ago
parent 4513c4cd87
commit 44db48cc89

@ -150,7 +150,7 @@ func (s *server) watch(inotifyFd int) {
conns := connsForPath[path] conns := connsForPath[path]
if conns == nil { if conns == nil {
// watcher has been already deregistered // watcher has been already deregistered
return continue
} }
for idx, c := range conns { for idx, c := range conns {
if c.fd == fd { if c.fd == fd {

Loading…
Cancel
Save