mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 976537 - Guard against crashing in NFC shutdown when sNfcConsumer is NULL. r=allstars.chh
This commit is contained in:
parent
16b735cedc
commit
71972c4eb2
@ -311,9 +311,11 @@ NfcConsumer::Shutdown()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
sNfcConsumer->mShutdown = true;
|
||||
sNfcConsumer->CloseSocket();
|
||||
sNfcConsumer = nullptr;
|
||||
if (sNfcConsumer) {
|
||||
sNfcConsumer->mShutdown = true;
|
||||
sNfcConsumer->CloseSocket();
|
||||
sNfcConsumer = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user