From ba020540c064ebd48bf6b77e5bd5e11255766f23 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 22 May 2015 20:15:32 +0000 Subject: -PluginUpdater: -code cleanup git-svn-id: http://svn.miranda-ng.org/main/trunk@13765 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Events.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/PluginUpdater/src/Events.cpp') diff --git a/plugins/PluginUpdater/src/Events.cpp b/plugins/PluginUpdater/src/Events.cpp index ed2d5e7811..9987cf1179 100644 --- a/plugins/PluginUpdater/src/Events.cpp +++ b/plugins/PluginUpdater/src/Events.cpp @@ -19,7 +19,7 @@ Boston, MA 02111-1307, USA. #include "common.h" -HANDLE Timer, hPluginUpdaterFolder; +HANDLE hPluginUpdaterFolder; int OnFoldersChanged(WPARAM, LPARAM) { @@ -61,17 +61,13 @@ int ModulesLoaded(WPARAM, LPARAM) CheckUpdateOnStartup(); - Timer = CreateWaitableTimer(NULL, FALSE, NULL); - mir_forkthread(InitTimer, 0); + CreateTimer(); return 0; } int OnPreShutdown(WPARAM, LPARAM) { - CancelWaitableTimer(Timer); - CloseHandle(Timer); - UninitCheck(); #if MIRANDA_VER >= 0x0A00 -- cgit v1.2.3