Match MxDiskStreamProvider::SetResourceToGet

This commit is contained in:
Christian Semmler 2023-12-24 10:01:23 -05:00
parent 43efcc5253
commit d23b4db2ff
No known key found for this signature in database
GPG key ID: 086DAA1360BEEE5C

View file

@ -59,10 +59,9 @@ MxResult MxDiskStreamProvider::SetResourceToGet(MxStreamController* p_resource)
} }
m_remainingWork = 1; m_remainingWork = 1;
MxResult success = m_busySemaphore.Init(0, 100); m_busySemaphore.Init(0, 100);
m_thread.StartWithTarget(this);
if (success == SUCCESS && p_resource != NULL) { if (m_thread.StartWithTarget(this) == SUCCESS && p_resource != NULL) {
result = SUCCESS; result = SUCCESS;
} }
} }