(websocket client) reset WebSocketTransport onClose callback in the WebSocket destructor

This commit is contained in:
Benjamin Sergeant
2020-07-24 10:03:29 -07:00
parent c26a2d5d39
commit 0f026c5da2
4 changed files with 10 additions and 2 deletions

View File

@ -46,6 +46,7 @@ namespace ix
WebSocket::~WebSocket()
{
stop();
_ws.setOnCloseCallback(nullptr);
}
void WebSocket::setUrl(const std::string& url)