When the client is unfocused (by making it non fullscreen and then clicking on some other application on the same monitor)
the client sends no keep alive packets more (it seems like it freezes somehow, which is good in theory but in practice it doesn't respond to any packets sent to it anymore, like for example keep alive packets... which causes it to crash after a timing out from the server. This can be fixed by handling some specific packets in the reader thread, and not sending them to the main thread via the channel. (I already fixed it in my custom version of this client, which I can't merge into this one, cuz I removed web support and I am about to switch to vulkano as a rendering engine)
When the client is unfocused (by making it non fullscreen and then clicking on some other application on the same monitor)
the client sends no keep alive packets more (it seems like it freezes somehow, which is good in theory but in practice it doesn't respond to any packets sent to it anymore, like for example keep alive packets... which causes it to crash after a timing out from the server. This can be fixed by handling some specific packets in the reader thread, and not sending them to the main thread via the channel. (I already fixed it in my custom version of this client, which I can't merge into this one, cuz I removed web support and I am about to switch to vulkano as a rendering engine)