stop using C++14 lambda capture init, code should be C++11 compatible

This commit is contained in:
Benjamin Sergeant 2021-01-03 11:44:05 -08:00
parent d0359a1764
commit f6e34e4b34

View File

@ -97,9 +97,10 @@ namespace ix
}
else if (_onClientMessageCallback)
{
WebSocket* webSocketRawPtr = webSocket.get();
webSocket->setOnMessageCallback(
[this, &ws = *webSocket.get(), connectionState](const WebSocketMessagePtr& msg) {
_onClientMessageCallback(connectionState, ws, msg);
[this, webSocketRawPtr, connectionState](const WebSocketMessagePtr& msg) {
_onClientMessageCallback(connectionState, *webSocketRawPtr, msg);
});
}
else