diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-27 16:44:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-27 16:44:15 +0300 |
commit | 39fd55ba289dac79de681d420a071a74e28c4455 (patch) | |
tree | be121927d808d6928696743cdf444625f1bf6225 /protocols | |
parent | d3fb018c576412538d929828f9e4c28e72b7dc5c (diff) |
we better start threads inside OnModulesLoaded, so we don't have to kill them
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 7 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_iq.cpp | 2 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 5 |
3 files changed, 6 insertions, 8 deletions
diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index 583fa6e919..bb15968d86 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -151,9 +151,6 @@ CIcqProto::CIcqProto(const char* aProtoName, const wchar_t* aUserName) : // Initialize Contacts Cache
InitContactsCache();
- // Startup Auto Info-Update thread
- icq_InitInfoUpdate();
-
HookProtoEvent(ME_CLIST_PREBUILDSTATUSMENU, &CIcqProto::OnPreBuildStatusMenu);
// Register netlib users
@@ -251,6 +248,9 @@ int CIcqProto::OnModulesLoaded(WPARAM, LPARAM) modules[3] = pszSrvGroupsName;
CallService("DBEditorpp/RegisterModule", (WPARAM)modules, (LPARAM)4);
+ // Startup Auto Info-Update thread
+ icq_InitInfoUpdate();
+
HookProtoEvent(ME_OPT_INITIALISE, &CIcqProto::OnOptionsInit);
HookProtoEvent(ME_USERINFO_INITIALISE, &CIcqProto::OnUserInfoInit);
HookProtoEvent(ME_IDLE_CHANGED, &CIcqProto::OnIdleChanged);
@@ -264,7 +264,6 @@ int CIcqProto::OnModulesLoaded(WPARAM, LPARAM) if (bXStatus > 0)
setContactExtraIcon(hContact, bXStatus);
}
-
return 0;
}
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 = {};
|