diff --git a/app/classes/minecraft/mc_ping.py b/app/classes/minecraft/mc_ping.py index 3417967c..1c52ab98 100644 --- a/app/classes/minecraft/mc_ping.py +++ b/app/classes/minecraft/mc_ping.py @@ -136,6 +136,7 @@ def ping(ip, port): return i sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + sock.settimeout(5) try: sock.connect((ip, port))