From a71aad7ccfaf241dc416c95dc889be0704ad44d8 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 6 Jan 2021 23:35:46 +0100 Subject: [PATCH] fix crash --- serverconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverconn.go b/serverconn.go index cd959d16..0c28c9bf 100644 --- a/serverconn.go +++ b/serverconn.go @@ -860,7 +860,7 @@ func (sc *ServerConn) backgroundRecord() { if now.Sub(last) >= sc.conf.ReadTimeout { atomic.StoreInt32(sc.udpTimeout, 1) - sc.Close() + sc.nconn.Close() return } }