Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #23 from ilyash0/dev
Browse files Browse the repository at this point in the history
v0.4.4
  • Loading branch information
ilyash0 authored Jan 10, 2024
2 parents ace0787 + 807b010 commit 2be5fe0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bot/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def __init__(self, server, reader, writer):

super().__init__()

def is_closing(self):
return self.__writer.is_closing()

async def send_tag(self, handler_id, *data):
tag_data = "|".join(map(str, data))
line = f"[{handler_id}]|{tag_data}|"
Expand Down
2 changes: 1 addition & 1 deletion bot/misc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def get_penguin_from_penguin_id(penguin_id: int) -> Penguin:


async def check_connection_to_houdini():
if server.client_object.__writer.is_closing():
if server.client_object.is_closing():
await server.connect_to_houdini()


Expand Down

0 comments on commit 2be5fe0

Please sign in to comment.