From 5a327549370280ee0f2cfbaae7a1bb98c841babe Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 18 Sep 2018 21:48:40 -0700 Subject: [PATCH] ircd::server: Catch anything at these handlers. --- ircd/server.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/server.cc b/ircd/server.cc index 91ad15428..d19e945d2 100644 --- a/ircd/server.cc +++ b/ircd/server.cc @@ -1405,7 +1405,7 @@ catch(const boost::system::system_error &e) assert(peer); peer->handle_error(*this, e); } -catch(const std::exception &e) +catch(...) { assert(peer); peer->handle_error(*this, std::current_exception()); @@ -1576,7 +1576,7 @@ catch(const boost::system::system_error &e) assert(peer); peer->handle_error(*this, e); } -catch(const std::exception &e) +catch(...) { assert(peer); peer->handle_error(*this, std::current_exception());