fix: add lock to terminate handler

This commit is contained in:
jar3b
2020-08-13 15:26:57 +03:00
parent 9eec782920
commit ed59ea1d0a
2 changed files with 10 additions and 5 deletions

View File

@@ -1,6 +1,9 @@
package grawt
import "sync"
type CloseHandler struct {
sync.Mutex
waiter *Waiter
Quit chan struct{}
active bool