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;
}