summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-28 16:10:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-28 16:10:39 +0300
commit14ad818465dcd095dc8ecf3dbc8cef082c5ceb6b (patch)
tree5fb79674196cc9baf94883a063cdf16709f18f8f /protocols
parent360c1c9f1dd2a6a686a4a5c6ebe1a317aa3f5aa3 (diff)
fixes #3364 (Jabber: random crash)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_voip.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_voip.cpp b/protocols/JabberG/src/jabber_voip.cpp
index ecd20612b5..27147af5f0 100644
--- a/protocols/JabberG/src/jabber_voip.cpp
+++ b/protocols/JabberG/src/jabber_voip.cpp
@@ -356,8 +356,9 @@ bool CJabberProto::VOIPTerminateSession(const char *reason)
gst_print("Pipeline stopped\n");
}
- if (reason && !m_voipSession.IsEmpty() && !m_voipPeerJid.IsEmpty()) {
+ if (m_ThreadInfo && reason && !m_voipSession.IsEmpty() && !m_voipPeerJid.IsEmpty()) {
XmlNodeIq iq("set", SerialNext(), m_voipPeerJid);
+
TiXmlElement *jingleNode = iq << XCHILDNS("jingle", JABBER_FEAT_JINGLE);
jingleNode << XATTR("action", "session-terminate") << XATTR("sid", m_voipSession);
jingleNode << XATTR("initiator", m_isOutgoing ? m_ThreadInfo->fullJID : m_voipPeerJid);