mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 704004 websockets null check of channel before calling close on it r=jduell
This commit is contained in:
parent
950276a2ca
commit
defb404ca8
@ -164,7 +164,8 @@ nsWebSocket::CloseConnection()
|
||||
|
||||
if (mReadyState == nsIMozWebSocket::CONNECTING) {
|
||||
SetReadyState(nsIMozWebSocket::CLOSED);
|
||||
mWebSocketChannel->Close(mClientReasonCode, mClientReason);
|
||||
if (mWebSocketChannel)
|
||||
mWebSocketChannel->Close(mClientReasonCode, mClientReason);
|
||||
Disconnect();
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user