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