Skip to content

Commit

Permalink
fix poll spam
Browse files Browse the repository at this point in the history
  • Loading branch information
4nd3r committed Apr 4, 2021
1 parent 61a9139 commit 589701e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiny-matrix-bot.py
Expand Up @@ -100,7 +100,7 @@ async def run(self):
self._client.add_response_callback(self._on_sync, nio.SyncResponse)
self._client.add_event_callback(self._on_invite, nio.InviteMemberEvent)
self._client.add_event_callback(self._on_message, nio.RoomMessageText)
await self._client.sync_forever()
await self._client.sync_forever(timeout=30000)
await self._client.close()

async def _on_error(self, response):
Expand Down

0 comments on commit 589701e

Please sign in to comment.