Save last activity to account on disconnect

This commit is contained in:
James Booth
2015-09-25 00:26:58 +01:00
parent 4257ecb1c5
commit b484411ea8
6 changed files with 22 additions and 0 deletions

View File

@@ -200,6 +200,7 @@ jabber_disconnect(void)
// if connected, send end stream and wait for response
if (jabber_conn.conn_status == JABBER_CONNECTED) {
log_info("Closing connection");
accounts_set_last_activity(jabber_get_account_name());
jabber_conn.conn_status = JABBER_DISCONNECTING;
xmpp_disconnect(jabber_conn.conn);