提交 12b2880b authored 作者: Chris Rienzo's avatar Chris Rienzo

FS-8143 #resolve #comment [mod_rayo] Fix crash caused by client disconnecting…

FS-8143 #resolve #comment [mod_rayo] Fix crash caused by client disconnecting from mod_rayo while a message is being delivered to that client.
This is caused by the XMPP context's JID -> XMPP stream mapping not being cleaned up on XMPP stream destruction.
上级 fab43547
......@@ -1123,7 +1123,7 @@ static void xmpp_stream_destroy(struct xmpp_stream *stream)
/* remove from available streams */
switch_mutex_lock(context->streams_mutex);
if (stream->jid && !stream->incoming) {
if (stream->jid) {
switch_core_hash_delete(context->routes, stream->jid);
}
if (stream->id) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论