notify progressTraffic to quit

This commit is contained in:
Shelikhoo committed 2018-03-18 22:13:17 +08:00
1 parent 3e05a3529a
commit 09bf78a089
2 files changed
+6 -1

No files matched your search

@@ -128,6 +128,7 @@ func (ls *Listener) uploop(cctx context.Context) {
errortolerance := 5
for {
if cctx.Err() != nil {
close(ls.listenerChan)
return
}
conn, err := ls.ln.Accept()