diff --git a/src/modules/shortcut_guide/native_event_waiter.h b/src/modules/shortcut_guide/native_event_waiter.h index 14bf1a2d0d..d7dcaa603e 100644 --- a/src/modules/shortcut_guide/native_event_waiter.h +++ b/src/modules/shortcut_guide/native_event_waiter.h @@ -6,15 +6,14 @@ class NativeEventWaiter { static const int timeout = 1000; - HANDLE event_handle; - std::function action; - std::atomic aborting; + HANDLE event_handle = nullptr; + std::function action = nullptr; + std::atomic aborting = false; void run(); std::thread running_thread; public: - NativeEventWaiter(const std::wstring& event_name, std::function action); ~NativeEventWaiter(); };