Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
bouncer: just poke ready function if session is already prepared
Browse files Browse the repository at this point in the history
Signed-off-by: Yonle <[email protected]>
  • Loading branch information
Yonle committed May 11, 2024
1 parent bc4784b commit bd425a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bouncer.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ function handleWorker(msg) {
switch (msg.type) {
case "sessreg": {
if (!idents.hasOwnProperty(msg.ident)) return _destroy(msg.id);
if (idents[msg.ident].id === msg.id) return ws.onready(); // if existing is the same as the current one, just poke ready.
const ws = idents[msg.ident];
if (ws.id === msg.id) return ws.onready(); // if existing is the same as the current one, just poke ready.
ws.id = msg.id;
ws.onready();
csess[msg.id] = ws;
Expand Down

0 comments on commit bd425a9

Please sign in to comment.