mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-06 03:51:23 +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 = AsyncServerPinger(connection, host=self.host, port=self.port, **kwargs)
|
||||||
pinger.handshake()
|
pinger.handshake()
|
||||||
ping = await pinger.test_ping()
|
ping = await pinger.test_ping()
|
||||||
connection.close()
|
|
||||||
return ping
|
return ping
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exception_to_raise_after_giving_up = e
|
exception_to_raise_after_giving_up = e
|
||||||
|
|||||||
Reference in New Issue
Block a user