When I close the laptop lid something goes wrong with proper account
disconnecting.
After my notebook suspended, I still appear online for my contacts, even though
I am not (on any computer).
It is strange, that in the (attached) pidgin log I see the NetworkManager event
which should disconnect my account, so that I am no longer online, but it
doesn't work.
I am using systemd as init system (if that is important).
Pidgin Debug log (after suspending and resuming again):
(01:25:56) network: Got StateChange from NetworkManager: 10.
(01:25:56) account: Disconnecting account psk@autistici.org/ (0x7f1c46c1ccc0)
(01:25:56) connection: Disconnecting connection 0x7f1c478b1c10
(01:25:56) connection: Deactivating keepalive.
(01:25:56) jabber: Sending (ssl)
(psk@autistici.org/17910177181413678280191277): </stream:stream>
(01:25:56) connection: Destroying connection 0x7f1c478b1c10
(01:26:06) network: Got StateChange from NetworkManager: 20.
(01:26:07) util: Writing file blist.xml to directory /home/cinemast/.purple
(01:26:07) util: Writing file /home/cinemast/.purple/blist.xml
(01:26:07) util: Writing file accounts.xml to directory /home/cinemast/.purple
(01:26:07) util: Writing file /home/cinemast/.purple/accounts.xml
(01:26:09) network: Got StateChange from NetworkManager: 40.
(01:26:09) network: Got StateChange from NetworkManager: 50.
(01:26:09) autorecon: do_signon called
(01:26:09) autorecon: calling purple_account_connect
(01:26:09) account: Connecting to account psk@autistici.org/.
(01:26:09) connection: Connecting. gc = 0x7f1c4789e680
(01:26:09) dnssrv: querying SRV record for autistici.org: _xmpp-
client._tcp.autistici.org
(01:26:09) autorecon: done calling purple_account_connect
(01:26:09) dnssrv: res_query returned an error
(01:26:09) dnsquery: Performing DNS lookup for autistici.org
(01:26:09) dns: Wait for DNS child 21589 failed: No child processes
(01:26:09) dns: Created new DNS child 21808, there are now 1 children.
(01:26:09) dns: Successfully sent DNS request to child 21808
(01:26:09) network: Got StateChange from NetworkManager: 70.
(01:26:15) dns: Got response for 'autistici.org'
(01:26:15) dnsquery: IP resolved for autistici.org
(01:26:15) proxy: Attempting connection to 82.94.249.234
(01:26:15) proxy: Connecting to autistici.org:5222 with no proxy
(01:26:15) proxy: Connection in progress
(01:26:15) proxy: Connecting to autistici.org:5222.
(01:26:15) proxy: Connected to autistici.org:5222.