Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

kqueue: fix incorrect mutex used in Close() #100

Merged
merged 1 commit into from
Jul 11, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fsnotify_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ func (w *Watcher) Close() error {

// Send "quit" message to the reader goroutine
w.done <- true
w.pmut.Lock()
w.wmut.Lock()
ws := w.watches
w.pmut.Unlock()
w.wmut.Unlock()
for path := range ws {
w.removeWatch(path)
}
Expand Down