(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

@ -1,6 +1,10 @@
# Changelog
All changes to this project will be documented in this file.
## [9.10.1] - 2020-07-24
(websocket server) reset client websocket callback when the connection is closed
## [9.10.0] - 2020-07-23
(websocket server) add a new simpler API to handle client connections / that API does not trigger a memory leak while the previous one did

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"