From 8fe79459d5d2ee40719fe0c306a190dbb48b54dc Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Fri, 20 Jul 2018 10:54:28 +0300 Subject: [PATCH] - fix for access violation --- src/engine/helper/HL_Sync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/helper/HL_Sync.cpp b/src/engine/helper/HL_Sync.cpp index 624b96dc..fbd320f3 100644 --- a/src/engine/helper/HL_Sync.cpp +++ b/src/engine/helper/HL_Sync.cpp @@ -127,7 +127,7 @@ BufferQueue::Block BufferQueue::pull(std::chrono::milliseconds timeout) status = mSignal.wait_for(l, timeout); Block r; - if (status == std::cv_status::no_timeout) + if (status == std::cv_status::no_timeout && !mBlockList.empty()) { r = mBlockList.front(); mBlockList.erase(mBlockList.begin());