From e99823714ac5f408be713ca02f75fb2fa4e08b12 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 13 Feb 2021 11:09:20 +0800 Subject: [PATCH] bugfix --- appPublic/find_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appPublic/find_player.py b/appPublic/find_player.py index a809ccc..586c4f2 100644 --- a/appPublic/find_player.py +++ b/appPublic/find_player.py @@ -40,7 +40,7 @@ def find_players(port): #设置阻塞 #udpCliSock.setblocking(2) #设置超时时间 - udpCliSock.settimeout(0.5) + udpCliSock.settimeout(5) udpCliSock.bind(('', 0)) udpCliSock.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) udpCliSock.sendto(b'findplayers', ('255.255.255.255',port))