diff options
| author | Shulhan <m.shulhan@gmail.com> | 2019-11-24 23:19:04 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2019-11-24 23:19:04 +0700 |
| commit | d2c5ba52b2e6ae3cb26a7b79ad3cf6b059658ef3 (patch) | |
| tree | febf4385a48987b78ac5e13742da9824fa07e197 | |
| parent | 91efbcb6918b0789264fe6e4ed5335329ee62715 (diff) | |
| download | pakakeh.go-d2c5ba52b2e6ae3cb26a7b79ad3cf6b059658ef3.tar.xz | |
dns: make the stopper channel to be buffered
| -rw-r--r-- | lib/dns/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns/server.go b/lib/dns/server.go index b5b5ee91..63733110 100644 --- a/lib/dns/server.go +++ b/lib/dns/server.go @@ -1107,7 +1107,7 @@ func (srv *Server) stopForwarders() { func (srv *Server) newStopper() (stopper chan bool) { srv.fwLocker.Lock() - stopper = make(chan bool) + stopper = make(chan bool, 1) srv.fwStoppers = append(srv.fwStoppers, stopper) srv.fwGroup.Add(1) |
