diff options
author | George Hazan <ghazan@miranda.im> | 2022-01-23 20:24:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-01-23 20:24:31 +0300 |
commit | 5e58fc978618098c00bf0eec960eafe81fe87e3d (patch) | |
tree | e182ef2f7c3e6ec2ccb1be177853ad6d95c92a3a /plugins/Ping/src/ping.cpp | |
parent | 776200f3ea1f03b3fb03c55d07e5fe93630789be (diff) |
fixes #2999 (Ping plugin hangs Miranda on exit)
Diffstat (limited to 'plugins/Ping/src/ping.cpp')
-rw-r--r-- | plugins/Ping/src/ping.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/Ping/src/ping.cpp b/plugins/Ping/src/ping.cpp index 1cf633c8d9..c9a63554a9 100644 --- a/plugins/Ping/src/ping.cpp +++ b/plugins/Ping/src/ping.cpp @@ -46,10 +46,7 @@ static void CreatePluginServices() reload_event_handle = CreateHookableEvent(MODULENAME "/ListReload");
//log
- CreateServiceFunction(MODULENAME "/Log", Log);
CreateServiceFunction(MODULENAME "/ViewLogData", ViewLogData);
- CreateServiceFunction(MODULENAME "/GetLogFilename", GetLogFilename);
- CreateServiceFunction(MODULENAME "/SetLogFilename", SetLogFilename);
// menu
CreateServiceFunction(MODULENAME "/DisableAll", PingDisableAll);
@@ -102,9 +99,7 @@ static int OnModulesLoaded(WPARAM, LPARAM) graphs_init();
- if (options.logging)
- CallService(MODULENAME "/Log", (WPARAM)L"start", 0);
-
+ Log(L"start");
return 0;
}
@@ -146,8 +141,6 @@ int CMPlugin::Unload() {
SavePingList(0, 0);
- if (options.logging)
- CallService(MODULENAME "/Log", (WPARAM)L"stop", 0);
-
+ Log(L"stop");
return 0;
}
|