From ca8d9de94433e923e36cd7a1c8dde7dc2fcb080d Mon Sep 17 00:00:00 2001 From: lovedboy Date: Tue, 24 May 2016 13:24:29 +0800 Subject: [PATCH] add return when utpsock's err is not nil --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index e03e3a3c..f77fafee 100644 --- a/client.go +++ b/client.go @@ -235,6 +235,7 @@ func listen(tcp, utp bool, networkSuffix, addr string) (tcpL net.Listener, utpSo utpSock, err = listenUTP(networkSuffix, addr) if err != nil && tcp { tcpL.Close() + return } listenedAddr = utpSock.Addr().String() } -- 2.50.0