Skip to content

Commit

Permalink
Safety improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
bricklife committed Sep 9, 2022
1 parent 1102792 commit 42f3ff1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class ScratchLink {
socketId: this.socketId
});

this.onclose();
if (this.onclose) {
this.onclose();
}

ScratchLink.sockets.delete(this.socketId);
}
Expand Down

0 comments on commit 42f3ff1

Please sign in to comment.