summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-27 16:44:15 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-27 16:44:15 +0300
commit39fd55ba289dac79de681d420a071a74e28c4455 (patch)
treebe121927d808d6928696743cdf444625f1bf6225 /protocols/JabberG
parentd3fb018c576412538d929828f9e4c28e72b7dc5c (diff)
we better start threads inside OnModulesLoaded, so we don't have to kill them
Diffstat (limited to 'protocols/JabberG')
-rw-r--r--protocols/JabberG/src/jabber_iq.cpp2
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_iq.cpp b/protocols/JabberG/src/jabber_iq.cpp
index 2a0c5de4f0..6c5bf322e7 100644
--- a/protocols/JabberG/src/jabber_iq.cpp
+++ b/protocols/JabberG/src/jabber_iq.cpp
@@ -140,8 +140,6 @@ void __cdecl CJabberProto::ExpirerThread(void* pParam)
void CJabberIqManager::ExpirerThread()
{
- Thread_SetName("Jabber: ExpirerThread");
-
while (!m_bExpirerThreadShutdownRequest) {
CJabberIqInfo *pInfo = DetachExpired();
if (!pInfo) {
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index 5957cfd772..6a125f7ffc 100755
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -188,7 +188,6 @@ CJabberProto::CJabberProto(const char *aProtoName, const wchar_t *aUserName) :
HookProtoEvent(ME_SKIN2_ICONSCHANGED, &CJabberProto::OnReloadIcons);
m_iqManager.FillPermanentHandlers();
- m_iqManager.Start();
m_messageManager.FillPermanentHandlers();
m_adhocManager.FillDefaultNodes();
@@ -198,7 +197,6 @@ CJabberProto::CJabberProto(const char *aProtoName, const wchar_t *aUserName) :
InitPopups();
GlobalMenuInit();
WsInit();
- ConsoleInit();
m_pepServices.insert(new CPepMood(this));
m_pepServices.insert(new CPepActivity(this));
@@ -273,6 +271,9 @@ int CJabberProto::OnModulesLoadedEx(WPARAM, LPARAM)
XStatusInit();
m_pepServices.InitGui();
+ m_iqManager.Start();
+
+ ConsoleInit();
InitInfoFrame();
GCREGISTER gcr = {};