Merge branch 'master' into custom_alt

This commit is contained in:
Alex
2019-02-26 12:18:34 +01:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@ -149,6 +149,9 @@ waybar::modules::Backlight::Backlight(const std::string &name,
const int event_count =
epoll_wait(epoll_fd.get(), events, EPOLL_MAX_EVENTS,
std::chrono::milliseconds{interval_}.count());
if (!udev_thread_.isRunning()) {
break;
}
decltype(devices_) devices;
{
std::scoped_lock<std::mutex> lock(udev_thread_mutex_);