From d23b4db2ffd7555df5cdea27e87a6dfdcfa06bf4 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sun, 24 Dec 2023 10:01:23 -0500 Subject: [PATCH] Match MxDiskStreamProvider::SetResourceToGet --- LEGO1/mxdiskstreamprovider.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LEGO1/mxdiskstreamprovider.cpp b/LEGO1/mxdiskstreamprovider.cpp index e55287fd..a8d15984 100644 --- a/LEGO1/mxdiskstreamprovider.cpp +++ b/LEGO1/mxdiskstreamprovider.cpp @@ -59,10 +59,9 @@ MxResult MxDiskStreamProvider::SetResourceToGet(MxStreamController* p_resource) } m_remainingWork = 1; - MxResult success = m_busySemaphore.Init(0, 100); - m_thread.StartWithTarget(this); + m_busySemaphore.Init(0, 100); - if (success == SUCCESS && p_resource != NULL) { + if (m_thread.StartWithTarget(this) == SUCCESS && p_resource != NULL) { result = SUCCESS; } }