From 26726071afc12550d123160bd0a4b7de0021a622 Mon Sep 17 00:00:00 2001 From: preeded <86511859+preeded@users.noreply.github.com> Date: Sun, 5 Dec 2021 19:24:40 +0900 Subject: [PATCH] delete connection close --- mcstatus/server.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mcstatus/server.py b/mcstatus/server.py index c174b99..4100dcc 100644 --- a/mcstatus/server.py +++ b/mcstatus/server.py @@ -87,7 +87,6 @@ async def async_ping(self, tries: int = 3, **kwargs) -> float: 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