Skip to content

Commit

Permalink
delete connection close
Browse files Browse the repository at this point in the history
  • Loading branch information
preeded authored and kevinkjt2000 committed Dec 8, 2021
1 parent 988f241 commit 2672607
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mcstatus/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2672607

Please sign in to comment.