Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

ERROR:root:on_close() called due to IdleTerminate: 10 #435

Open
DaveAlviz opened this issue Nov 30, 2018 · 2 comments
Open

ERROR:root:on_close() called due to IdleTerminate: 10 #435

DaveAlviz opened this issue Nov 30, 2018 · 2 comments

Comments

@DaveAlviz
Copy link

Anybody knows why this message is shown with every message sent to the bot (using async version)?

ERROR:root:on_close() called due to IdleTerminate: 10

This is really annoying!

@a-x-
Copy link

a-x- commented Dec 8, 2018

+1

@96Octavian
Copy link

96Octavian commented Dec 19, 2018

I never used async, but I think it's similar to the sync version: when you create a class to handle chats, you specify a timeout with DelegatorBot(TOKEN, [pave_event_space()(per_chat_id(), create_open, ChatClass, *timeout=10*)])
When the timeout expires the class instance dies and a method of the class called on_close() is called and if not redefined it uses the standard one in telepot

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants