summaryrefslogtreecommitdiff
path: root/src/core/miranda.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/miranda.cpp')
-rw-r--r--src/core/miranda.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/miranda.cpp b/src/core/miranda.cpp
index 4bb1678ecc..4af88f95a6 100644
--- a/src/core/miranda.cpp
+++ b/src/core/miranda.cpp
@@ -301,6 +301,8 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR cmdLine, int)
int result = 0;
if ( LoadDefaultModules()) {
+ SetEvent(hMirandaShutdown);
+ NotifyEventHooks(hPreShutdownEvent, 0, 0);
NotifyEventHooks(hShutdownEvent, 0, 0);
UnloadDefaultModules();