Skip to content

Commit

Permalink
Fix Listen() hanging indefinitely when listener is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
nvx authored and johto committed Aug 22, 2018
1 parent 90697d6 commit 55f6f27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,9 @@ func (l *Listener) Close() error {
}
l.isClosed = true

// Unblock calls to Listen()
l.reconnectCond.Broadcast()

return nil
}

Expand Down

0 comments on commit 55f6f27

Please sign in to comment.