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/IcqOscarJ | |
parent | d3fb018c576412538d929828f9e4c28e72b7dc5c (diff) |
we better start threads inside OnModulesLoaded, so we don't have to kill them
Diffstat (limited to 'protocols/IcqOscarJ')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_proto.cpp | 7 |
1 files changed, 3 insertions, 4 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;
}
|