mirror of
https://github.com/polybar/polybar.git
synced 2026-03-04 07:19:15 +00:00
feat(core): Custom thread sleep
Makes it possible to manually wake up sleeping threads
This commit is contained in:
@ -104,7 +104,7 @@ bool MpdModule::has_event()
|
||||
}
|
||||
|
||||
if (!this->mpd->connected()) {
|
||||
std::this_thread::sleep_for(3s);
|
||||
this->sleep(3s);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user