Don't try to poke at the header on deinit if MPQueue is nullptr
This commit is contained in:
parent
890a66c0eb
commit
5ef35a4ccf
|
@ -303,10 +303,13 @@ void DeInit()
|
||||||
if (MPQueue)
|
if (MPQueue)
|
||||||
{
|
{
|
||||||
MPQueue->lock();
|
MPQueue->lock();
|
||||||
MPQueueHeader* header = (MPQueueHeader*)MPQueue->data();
|
if (MPQueue->data() != nullptr)
|
||||||
header->ConnectedBitmask &= ~(1 << InstanceID);
|
{
|
||||||
header->InstanceBitmask &= ~(1 << InstanceID);
|
MPQueueHeader *header = (MPQueueHeader *) MPQueue->data();
|
||||||
header->NumInstances--;
|
header->ConnectedBitmask &= ~(1 << InstanceID);
|
||||||
|
header->InstanceBitmask &= ~(1 << InstanceID);
|
||||||
|
header->NumInstances--;
|
||||||
|
}
|
||||||
MPQueue->unlock();
|
MPQueue->unlock();
|
||||||
|
|
||||||
SemPoolDeinit();
|
SemPoolDeinit();
|
||||||
|
|
Loading…
Reference in New Issue