fix crash

This commit is contained in:
aler9
2021-01-06 23:35:46 +01:00
parent 2dd333a136
commit a71aad7ccf

View File

@@ -860,7 +860,7 @@ func (sc *ServerConn) backgroundRecord() {
if now.Sub(last) >= sc.conf.ReadTimeout { if now.Sub(last) >= sc.conf.ReadTimeout {
atomic.StoreInt32(sc.udpTimeout, 1) atomic.StoreInt32(sc.udpTimeout, 1)
sc.Close() sc.nconn.Close()
return return
} }
} }