Added an exit if the socket is closed for 10 min#101
Added an exit if the socket is closed for 10 min#101tacoroumen wants to merge 1 commit intothomst08:masterfrom
Conversation
|
Hey @tacoroumen, Oh yeah.... Yeah, that should do it :) |
|
@tacoroumen I'm not familiar with this code, but if it's simple enough to detect and exit, could it attempt to reconnect instead? We could still exit if it couldn't reconnect after say 3 times. |
|
Hey @gabemeola I'm assuming it would already try and reconnect. But I'm not sure maybe @thomst08 knows this? If it doesn't reconnect after a disconnect we could also add this yes. |
This is a little tricky to know exactly.... Short answer is I don't know.
I like the idea and know where your coming from, but if D#+ crashes in the background, I haven't had success restarting the bot without closing the program and reopening it, even when rebuilding the bot without a restart, it seems to crash in the library in the backend and I couldn't find a way of reloading it. But this might be unrelated to this issue, just a note. @tacoroumen, you have got the check in the right spot, but I am unsure if that's what we want to look for, what happens when the bot crashes in other ways? Will it kill it when it's about to restart? I am not sure at the moment. But at a guess, it's a good idea and worth exploring. |
As per #99