提交 be00609a authored 作者: Anthony Minessale's avatar Anthony Minessale

FSCORE-667

上级 35fd2bc9
...@@ -1974,10 +1974,19 @@ unsigned int ldl_session_terminate(ldl_session_t *session) ...@@ -1974,10 +1974,19 @@ unsigned int ldl_session_terminate(ldl_session_t *session)
{ {
iks *iq, *sess; iks *iq, *sess;
unsigned int id; unsigned int id;
apr_hash_t *hash = session->handle->sessions;
new_session_iq(session, &iq, &sess, &id, "terminate"); new_session_iq(session, &iq, &sess, &id, "terminate");
schedule_packet(session->handle, id, iq, LDL_RETRY); 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; return id;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论