Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Dec 5, 2024
1 parent 209dc37 commit ce5bdca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/socketio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ socketio::socketio() {
}

socketio::~socketio() {
constexpr int close_code = 1000;
constexpr int code = 1000;
constexpr const char *reason = "Client disconnecting";

if (_socket) {
emscripten_websocket_close(_socket, close_code, reason);
emscripten_websocket_close(_socket, code, reason);
emscripten_websocket_delete(_socket);
_socket = 0;
invoke("disconnect");
Expand Down

0 comments on commit ce5bdca

Please sign in to comment.