From 09a797b6373a2d6ef79c8909093be93a27020cf2 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Fri, 14 Oct 2016 16:20:41 +0200 Subject: [PATCH] fix(i3): Stop the module on ipc error Should fix jaagr/lemonbuddy#83 --- include/modules/i3.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }