(websocket server) reset client websocket callback when the connection is closed

This commit is contained in:
Benjamin Sergeant
2020-07-24 09:41:02 -07:00
parent 2798886c0b
commit c26a2d5d39
3 changed files with 7 additions and 1 deletions

View File

@ -136,6 +136,8 @@ namespace ix
logError(ss.str());
}
webSocket->setOnMessageCallback(nullptr);
// Remove this client from our client set
{
std::lock_guard<std::mutex> lock(_clientsMutex);

View File

@ -6,4 +6,4 @@
#pragma once
#define IX_WEBSOCKET_VERSION "9.10.0"
#define IX_WEBSOCKET_VERSION "9.10.1"