summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/EventLoop/EventLoop.cpp')
-rw-r--r--Swiften/EventLoop/EventLoop.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/EventLoop/EventLoop.cpp b/Swiften/EventLoop/EventLoop.cpp
index 2b8f00d..afb6858 100644
--- a/Swiften/EventLoop/EventLoop.cpp
+++ b/Swiften/EventLoop/EventLoop.cpp
@@ -18,18 +18,21 @@ namespace Swift {
inline void invokeCallback(const Event& event) {
try {
assert(!event.callback.empty());
event.callback();
}
catch (const std::exception& e) {
std::cerr << "Uncaught exception in event loop: " << e.what() << std::endl;
}
+ catch (...) {
+ std::cerr << "Uncaught non-exception in event loop" << std::endl;
+ }
}
EventLoop::EventLoop() : nextEventID_(0), handlingEvents_(false) {
}
EventLoop::~EventLoop() {
}
void EventLoop::handleEvent(const Event& event) {