Skip to content

Commit

Permalink
fix: schedule timeout should not be async (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev authored Sep 28, 2024
1 parent 9f53571 commit 0a3c720
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion realtime/_async/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,6 @@ def _reply_event_name(self, ref: str):
return f"chan_reply_{ref}"

async def _rejoin_until_connected(self):
await self.rejoin_timer.schedule_timeout()
self.rejoin_timer.schedule_timeout()
if self.socket.is_connected:
await self._rejoin()
2 changes: 1 addition & 1 deletion realtime/_async/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def reset(self):
if self.timer:
self.timer.cancel()

async def schedule_timeout(self):
def schedule_timeout(self):
if self.timer:
self.timer.cancel()

Expand Down

0 comments on commit 0a3c720

Please sign in to comment.