diff --git a/include/modules/i3.hpp b/include/modules/i3.hpp index c2a31b9c..1b7ba95d 100644 --- a/include/modules/i3.hpp +++ b/include/modules/i3.hpp @@ -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; }