Windows: Close session on system shutdown
When running Gajim on Windows, and shutting down the PC, Gajim will not properly close the server connection, so the server will remain under the impression that there is a 0198 hibernated session, caching MUC presence, pending messages etc, and causing issues for the user's contacts.
It would be great if Gajim could cleanly terminate the session (not just close the connection) on the server on system shutdown. On Windows, the WM_ENDSESSION event is fired and can be used - or maybe GTK has some portable way to detect it?
Similar work: