diff --git a/src/managers/EventManager.cpp b/src/managers/EventManager.cpp index 8881b3ac..b2c3adf3 100644 --- a/src/managers/EventManager.cpp +++ b/src/managers/EventManager.cpp @@ -108,7 +108,9 @@ void CEventManager::flushEvents() { for (auto& ev : m_dQueuedEvents) { std::string eventString = (ev.event + ">>" + ev.data).substr(0, 1022) + "\n"; for (auto& fd : m_dAcceptedSocketFDs) { - write(fd.first, eventString.c_str(), eventString.length()); + try { + write(fd.first, eventString.c_str(), eventString.length()); + } catch(...) {} } }