mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-08-26 19:21:45 +00:00
Close stopChan on exit
This commit is contained in:
@@ -64,6 +64,7 @@ func (r *UDPRelay) ListenAndServe() error {
|
||||
var connMapMutex sync.RWMutex
|
||||
// Timeout cleanup routine
|
||||
stopChan := make(chan bool)
|
||||
defer close(stopChan)
|
||||
go func() {
|
||||
ticker := time.NewTicker(udpMinTimeout)
|
||||
defer ticker.Stop()
|
||||
|
Reference in New Issue
Block a user