Fixed x360 notification clean-up

This commit is contained in:
Benjamin Höglinger-Stelzer
2019-05-28 21:18:33 +02:00
parent 267c0cc9d9
commit 6f616adf5c
7 changed files with 13 additions and 13 deletions

View File

@@ -32,8 +32,7 @@ void NotificationRequestPool::strand_dispatch_worker() const
NotificationRequestPool::NotificationRequestPool(
PVIGEM_CLIENT client,
PVIGEM_TARGET target,
FARPROC callback
PVIGEM_TARGET target
) :
client_(client),
target_(target),
@@ -73,10 +72,11 @@ NotificationRequestPool::~NotificationRequestPool() noexcept(false)
for (auto& wait_handle : wait_handles_)
CloseHandle(wait_handle);
for (auto& request : requests_)
request.reset();
io_svc_->stop();
worker_thread_->join();
thread_->join();
}
void NotificationRequestPool::operator()()