Skip to content

Commit

Permalink
Fixed ping causing close
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Aug 28, 2023
1 parent 3e5d6a3 commit 890ee59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apis/http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,7 @@ class websocket_server: public HTTPRequestHandler {
queueEvent(comp, websocket_closed_server, wsh);
break;
}
if ((flags & 0x0f) & WebSocket::FRAME_OP_CLOSE) {
if ((flags & 0x0f) == WebSocket::FRAME_OP_CLOSE) {
wsh->ws = NULL;
queueEvent(comp, websocket_closed_server, wsh);
break;
Expand Down

0 comments on commit 890ee59

Please sign in to comment.