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.
This commit is contained in:
Chris Rienzo 2015-09-09 17:03:23 -04:00
parent fab435479a
commit 12b2880b06
1 changed files with 1 additions and 1 deletions

View File

@ -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) {