fix(stream): reset stopCh after Stop for restartability

This commit is contained in:
xfy 2026-06-10 13:48:07 +08:00
parent 7204432ca0
commit 66ea93e3c1

View File

@ -550,6 +550,7 @@ func (s *Server) Stop() {
s.mu.Lock() s.mu.Lock()
s.listeners = make(map[string]net.Listener) s.listeners = make(map[string]net.Listener)
s.udpServers = make(map[string]*udpServer) s.udpServers = make(map[string]*udpServer)
s.stopCh = make(chan struct{})
s.mu.Unlock() s.mu.Unlock()
} }