Skip to content

Commit

Permalink
Close socket on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacquwes committed Sep 29, 2023
1 parent ba0601c commit b3b0b4e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ namespace pine
co_return;
}

client->second->close();

clients.erase(client_id);

co_return;
Expand Down

0 comments on commit b3b0b4e

Please sign in to comment.