Skip to content

Commit

Permalink
[Fix] Linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
YoannSab committed Aug 22, 2024
1 parent 3fe1865 commit c1648ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/seahorse/game/io_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ async def wait_for_event(self,sid:int,label:str,*,flush_until:float | None=None)
while not len(self.__events.get(sid,{}).get(label,[])):
await asyncio.sleep(.1)
ts,data = self.__events[sid][label].pop()

if (not flush_until) or ts>=flush_until:
return data
else :
Expand All @@ -297,7 +297,6 @@ def unattached_match(x):
cl = self.__identified_clients.get(matching_names[0])
self.__identified_clients[matching_names[0]]["attached"] = True

# TODO Check sid
await self.sio.emit("update_id",json.dumps({"new_id":local_id}),to=cl["sid"])
return cl

Expand Down Expand Up @@ -333,7 +332,7 @@ async def stop(task):
# Launching the task
logger.info("Starting match")
task_future = self.sio.start_background_task(task)

# Await the game task completion
try:
await task_future
Expand Down

0 comments on commit c1648ab

Please sign in to comment.