Skip to content

Commit

Permalink
reset ctx after error
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Gehorsam committed Nov 17, 2023
1 parent b6b7648 commit dbc55c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions impl/wsWslay/NWebsocketWslay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ namespace Nakama {
NLOG(NLogLevel::Debug, "Wslay result: ERROR %s", errMessage.c_str());
_state = State::Disconnected;
this->_io->close();
_ctx.reset(nullptr);
fireOnError(errMessage);
return;
}
Expand Down

0 comments on commit dbc55c2

Please sign in to comment.