Skip to content

Commit aa6159e

Browse files
committed
Revert "small fix on fspoll"
This reverts commit 3114501.
1 parent 3114501 commit aa6159e

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,8 +76,8 @@ func (p *Poller) Add(name string) error {
7676
} else {
7777
p.pollingFile(ctx, name, fi, ready)
7878
}
79-
_ = p.Remove(name)
8079
cancel()
80+
_ = p.Remove(name)
8181
}()
8282

8383
select {

0 commit comments

Comments
 (0)