FSCORE-667

This commit is contained in:
Anthony Minessale 2010-09-07 09:40:39 -05:00
parent 35fd2bc9e7
commit be00609aab
1 changed files with 9 additions and 0 deletions

View File

@ -1974,10 +1974,19 @@ unsigned int ldl_session_terminate(ldl_session_t *session)
{
iks *iq, *sess;
unsigned int id;
apr_hash_t *hash = session->handle->sessions;
new_session_iq(session, &iq, &sess, &id, "terminate");
schedule_packet(session->handle, id, iq, LDL_RETRY);
if (session->id) {
apr_hash_set(hash, session->id, APR_HASH_KEY_STRING, NULL);
}
if (session->them) {
apr_hash_set(hash, session->them, APR_HASH_KEY_STRING, NULL);
}
return id;
}