Fix bug in WinHttp WebSocket (#647)
This commit is contained in:
Родитель
c39d82badd
Коммит
4ede2c3dcb
|
@ -396,6 +396,11 @@ HRESULT WinHttpConnection::Close(ConnectionClosedCallback callback)
|
|||
m_state = ConnectionState::WebSocketClosing;
|
||||
break;
|
||||
}
|
||||
case ConnectionState::WebSocketClosing:
|
||||
{
|
||||
// Nothing to do. WinHttpClose will happen after websocket close completes
|
||||
return S_OK;
|
||||
}
|
||||
case ConnectionState::WinHttpClosing:
|
||||
{
|
||||
// Nothing to do
|
||||
|
|
|
@ -242,6 +242,8 @@ HRESULT WinHttpProvider::WebSocketConnectAsync(const char* uri, const char* /*su
|
|||
m_connections.push_back(connection);
|
||||
RETURN_IF_FAILED(connection->WebSocketConnectAsync(async));
|
||||
|
||||
websocketHandle->impl = std::move(connection);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче