Skip to content

Commit

Permalink
Initialize need_destroy in the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lzydmxy committed Dec 11, 2023
1 parent 130daf6 commit db23920
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Service/ForwardingConnectionHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit db23920

Please sign in to comment.