Skip to content

Commit

Permalink
[logisim-debugger] Prevent sending data to closed websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelix8996 committed Feb 11, 2024
1 parent 4347e16 commit 1adb42e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void onStart() {
}

public void sendMessage(String message) {
if (currentConnection != null) {
if (currentConnection != null && currentConnection.isOpen()) {
currentConnection.send(message);
}
}
Expand Down

0 comments on commit 1adb42e

Please sign in to comment.