Skip to content

Commit

Permalink
was/async/SimpleServer: remove redundant control.Close() call
Browse files Browse the repository at this point in the history
The SocketWrapper destructor closes the socket automatically.
  • Loading branch information
MaxKellermann committed Aug 5, 2024
1 parent 3611316 commit ae8bdcd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/was/async/SimpleServer.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ public:
SimpleServerHandler &_handler,
SimpleRequestHandler &_request_handler) noexcept;

~SimpleServer() noexcept {
control.Close();
}

auto &GetEventLoop() const noexcept {
return control.GetEventLoop();
}
Expand Down

0 comments on commit ae8bdcd

Please sign in to comment.