1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-18 13:55:11 -05:00

fix(i3): Stop the module on ipc error

Should fix jaagr/lemonbuddy#83
This commit is contained in:
Michael Carlberg 2016-10-14 16:20:41 +02:00
parent 1f0468add1
commit 09a797b637

View file

@ -112,8 +112,9 @@ namespace modules {
m_ipc.handle_event();
return true;
} catch (const std::exception& err) {
if (enabled())
m_log.err("%s: Error while handling ipc event (%s)", name(), err.what());
m_log.err("%s: Error while handling ipc event, stopping module...", name());
m_log.err("%s: %s", name(), err.what());
stop();
return false;
}