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