Fix close of uninitialized channel
This commit is contained in:
parent
3aeb406414
commit
6b449f5261
@ -212,10 +212,10 @@ func (s *Server) Close() {
|
||||
if s.listener != nil {
|
||||
s.listener.Close()
|
||||
s.listener = nil
|
||||
}
|
||||
|
||||
close(s.doneChan)
|
||||
}
|
||||
}
|
||||
|
||||
const (
|
||||
stageHandshakeDone = iota + 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user