Skip to content

Commit

Permalink
fix: remove connection ID on release
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed May 15, 2023
1 parent 8c6f96a commit 5a679bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ module Command = struct
cid
in
Hashtbl.replace client_sockets connection_id socket;
connection_handler ~sw socket addr;
Hashtbl.remove client_sockets connection_id)))
Switch.on_release sw (fun () ->
Hashtbl.remove client_sockets connection_id);
connection_handler ~sw socket addr)))
done);
fun () -> Promise.resolve released_u ()

Expand Down

0 comments on commit 5a679bb

Please sign in to comment.