Fix close of uninitialized channel

This commit is contained in:
Ingo Oppermann 2024-05-29 16:29:48 +02:00
parent 3aeb406414
commit 6b449f5261

View File

@ -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