mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-05 19:41:24 +08:00
delete connection close
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user