Fixed invalid state transition from <active/> to <paused/>

This commit is contained in:
James Booth
2012-10-31 23:41:30 +00:00
parent 5792cd597d
commit 270ac03558
4 changed files with 60 additions and 37 deletions

View File

@@ -1015,7 +1015,7 @@ _cmd_close(const char * const inp, struct cmd_help_t help)
// send <gone/> chat state before closing
if (chat_session_get_recipient_supports(recipient)) {
chat_session_gone(recipient);
chat_session_set_gone(recipient);
jabber_send_gone(recipient);
chat_session_end(recipient);
}