Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Dec 15, 2023
1 parent d0bbeaf commit f000b70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coro_http/examples/chat_room.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ int main() {
while (true) {
result = co_await req.get_conn()->read_websocket();
if (result.ec) {
{
std::scoped_lock lock(mtx);
conn_map.erase((intptr_t)req.get_conn());
}
break;
}

Expand Down

0 comments on commit f000b70

Please sign in to comment.