Skip to content

Commit

Permalink
Merge pull request #1723 from byehack/patch-1
Browse files Browse the repository at this point in the history
don't block loop
  • Loading branch information
coder2020official authored Sep 17, 2022
2 parents 8d9dfcf + c14760d commit b841fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telebot/async_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ async def infinity_polling(self, timeout: Optional[int]=20, skip_pending: Option
logger.error("Infinity polling exception: %s", str(e))
if logger_level and logger_level >= logging.DEBUG:
logger.error("Exception traceback:\n%s", traceback.format_exc())
time.sleep(3)
await asyncio.sleep(3)
continue
if logger_level and logger_level >= logging.INFO:
logger.error("Infinity polling: polling exited")
Expand Down

0 comments on commit b841fc1

Please sign in to comment.