- cat <<EOF > 165.patch
- diff --git a/syncwatcher.go b/syncwatcher.go
-index c36b034..5175c12 100644
---- a/syncwatcher.go
-+++ b/syncwatcher.go
-@@ -677,7 +677,10 @@ func accumulateChanges(debounceTimeout time.Duration,
- if flushTimerNeedsReset {
- flushTimerNeedsReset = false
- if !flushTimer.Stop() {
-- <-flushTimer.C
-+ select {
-+ case <-flushTimer.C:
-+ default:
-+ }
- }
- flushTimer.Reset(currInterval)
- }
-EOF
- git apply 165.patch || exit 1