TicClick / steel

an osu! chat client
MIT License
5 stars 0 forks source link

Steel takes ~2 min to automatically reconnect to channels after Windows is returned from the sleep state #58

Open 0x84f opened 10 months ago

0x84f commented 10 months ago

image image

Takes about 2 minutes for steel to acknowledge via GUI that it's disconnected and try to reconnect again, not sure if you care? I thought I had to restart but I started getting screenshots and noticed I was back online after 2 mins.

A minor inconvenience really.

0x84f commented 10 months ago

runtime.log

TicClick commented 7 months ago

unfortunately, it's hard for me to come up with a solution that'd reliably tell whether we're back from sleep/hybernation and restart the IRC thread immediately.

instead, what I can do is add a watchdog that'll kill the thread and restart it whenever it doesn't see any new messages in a while (the exact timeout may be set to, say, 30s by default, and made configurable by the user, so that people on unstable connections don't suffer too much)