From d2c5ba52b2e6ae3cb26a7b79ad3cf6b059658ef3 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 24 Nov 2019 23:19:04 +0700 Subject: dns: make the stopper channel to be buffered --- lib/dns/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.3