mirror of
https://github.com/rad4day/Waybar.git
synced 2025-09-16 23:42:32 +02:00
fix: cancel thread and fix window close
This commit is contained in:
@@ -59,6 +59,11 @@ class SleeperThread {
|
||||
do_run_ = false;
|
||||
}
|
||||
condvar_.notify_all();
|
||||
auto handle = thread_.native_handle();
|
||||
if (handle != 0) {
|
||||
// TODO: find a proper way to terminate thread...
|
||||
pthread_cancel(handle);
|
||||
}
|
||||
}
|
||||
|
||||
~SleeperThread() {
|
||||
|
Reference in New Issue
Block a user