summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-16 20:17:03 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-16 20:17:03 +0000
commit7a18e9f478a5f0baa7df3634fb72957965223148 (patch)
tree136ba379bc464f58fa5191a20d4ad41925878832 /protocols/JabberG/src/jabber.cpp
parent08904c1828b7fbf6af3f28f37cce9d252097e630 (diff)
clutch for a crash on exit on slow machines
git-svn-id: http://svn.miranda-ng.org/main/trunk@8641 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber.cpp')
-rw-r--r--protocols/JabberG/src/jabber.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp
index 663f68d4c4..25734504cc 100644
--- a/protocols/JabberG/src/jabber.cpp
+++ b/protocols/JabberG/src/jabber.cpp
@@ -35,6 +35,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
HINSTANCE hInst;
int hLangpack;
+bool g_bShutdown = false;
int g_cbCountries;
CountryListEntry *g_countries;
@@ -162,6 +163,12 @@ static int OnModulesLoaded(WPARAM, LPARAM)
return 0;
}
+static int OnPreShutdown(WPARAM, LPARAM)
+{
+ g_bShutdown = true;
+ return 0;
+}
+
///////////////////////////////////////////////////////////////////////////////
// OnLoad - initialize the plugin instance
@@ -218,8 +225,8 @@ extern "C" int __declspec(dllexport) Load()
g_XstatusIconsInit();
g_MenuInit();
HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
+ HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown);
JabberUserInfoInit();
-
return 0;
}