Skip to content

Commit fe30d4c

Browse files
committed
add comment
1 parent aa6159e commit fe30d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fspoll/poller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (p *Poller) Add(name string) error {
7676
} else {
7777
p.pollingFile(ctx, name, fi, ready)
7878
}
79-
cancel()
79+
cancel() // to prevent deadlock: ready might not be closed
8080
_ = p.Remove(name)
8181
}()
8282

0 commit comments

Comments
 (0)