Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5ced7e1

Browse files
committed
add paranoid reset
1 parent0cbee38 commit5ced7e1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎agent/agentcontainers/watcher/watcher.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ func (f *fsnotifyWatcher) Remove(file string) error {
116116
// If no more files in this directory are being watched, stop
117117
// watching the directory.
118118
iff.watchedDirs[dir]<=0 {
119+
f.watchedDirs[dir]=0// Ensure non-negative count.
119120
iferr:=f.Watcher.Remove(dir);err!=nil {
120121
returnxerrors.Errorf("remove directory from watcher: %w",err)
121122
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp