mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1171464 - Check that socket isn't already closed before closing it, r=kmachulis
If we get a connection error, mSocket can end up being null in RilConsumer::Close().
This commit is contained in:
parent
caa34849da
commit
0d1f71c55b
@ -273,8 +273,10 @@ RilConsumer::Send(UnixSocketRawData* aRawData)
|
||||
void
|
||||
RilConsumer::Close()
|
||||
{
|
||||
mSocket->Close();
|
||||
mSocket = nullptr;
|
||||
if (mSocket) {
|
||||
mSocket->Close();
|
||||
mSocket = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
// |StreamSocketConnector|
|
||||
|
Loading…
Reference in New Issue
Block a user