diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-05-12 14:02:47 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-05-12 14:02:47 +0300 |
commit | 7953fbce7b40c79c0471661b4a6b81792c5e5f5b (patch) | |
tree | c601e130026e0b903cf2eaed53577dfccdea46d4 /protocols/JabberG/src/jabber_opt.cpp | |
parent | 28fbb7c75a6f4a596c1af19755b05b835a6cc299 (diff) |
jabber: omemo: crashfix
better init/deinit
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_opt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 84cd744636..fff1c49a35 100755 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -848,6 +848,10 @@ public: }
}
}
+ if (m_proto->m_options.UseOMEMO)
+ m_proto->m_omemo.init();
+ else
+ m_proto->m_omemo.deinit();
m_proto->m_clientCapsManager.UpdateFeatHash();
m_proto->SendPresence(m_proto->m_iStatus, true);
}
|