delete connection close

This commit is contained in:
preeded
2021-12-05 19:24:40 +09:00
committed by Kevin Tindall
parent 988f2417ea
commit 26726071af

View File

@@ -87,7 +87,6 @@ class MinecraftServer:
pinger = AsyncServerPinger(connection, host=self.host, port=self.port, **kwargs)
pinger.handshake()
ping = await pinger.test_ping()
connection.close()
return ping
except Exception as e:
exception_to_raise_after_giving_up = e