diff --git a/src/Service/ForwardingConnectionHandler.cpp b/src/Service/ForwardingConnectionHandler.cpp index 03958e16ef..8de8159929 100644 --- a/src/Service/ForwardingConnectionHandler.cpp +++ b/src/Service/ForwardingConnectionHandler.cpp @@ -35,6 +35,8 @@ ForwardingConnectionHandler::ForwardingConnectionHandler(Context & global_contex handlers.push_back(&error_handler); handlers.push_back(&shutdown_handler); reactor.addEventHandlers(sock, handlers); + + need_destroy = false; } ForwardingConnectionHandler::~ForwardingConnectionHandler()