mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00: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
a325b2aa4e
commit
5c12ebb9b7
@ -273,9 +273,11 @@ RilConsumer::Send(UnixSocketRawData* aRawData)
|
|||||||
void
|
void
|
||||||
RilConsumer::Close()
|
RilConsumer::Close()
|
||||||
{
|
{
|
||||||
|
if (mSocket) {
|
||||||
mSocket->Close();
|
mSocket->Close();
|
||||||
mSocket = nullptr;
|
mSocket = nullptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// |StreamSocketConnector|
|
// |StreamSocketConnector|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user