Skip to content

Commit

Permalink
fix(i3): Stop the module on ipc error
Browse files Browse the repository at this point in the history
Should fix #83
  • Loading branch information
jaagr committed Oct 14, 2016
1 parent 1f0468a commit 09a797b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/modules/i3.hpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 09a797b

Please sign in to comment.