telebot icon indicating copy to clipboard operation
telebot copied to clipboard

Bot stops working

Open MehmetKursat opened this issue 5 years ago • 0 comments

I've noticed bot stops working but doesn't crash nor shows any error when the host computer goes to sleep state and gets turned on again, it is like as if it freezes, I have to restart the bot each time that happens.

As a side note if you test this and turn pc back on too fast, it will keep working. This happens when PC stays in sleep state for some time but I am not sure how long because I discovered and confirmed this unintentionally.

Oh wow previously I didn't notice any error but this time I can see this:

Error(Io, Os { code: 10054, kind: ConnectionReset, message: "An existing connection was forcibly closed by the remote host." })

How can I prevent this, for example this doesn't happen with another crate called telegram-bot.

MehmetKursat avatar Jan 15 '20 09:01 MehmetKursat