diff --git a/receiver/JFJochReceiverRugnux.cpp b/receiver/JFJochReceiverRugnux.cpp index 6538fc356..042b10d60 100644 --- a/receiver/JFJochReceiverRugnux.cpp +++ b/receiver/JFJochReceiverRugnux.cpp @@ -504,7 +504,7 @@ ZeroCopyReturnValue *JFJochReceiverRugnux::AnalysedImageSlot() { constexpr auto WRITER_WAIT = std::chrono::seconds(2); const auto t0 = std::chrono::steady_clock::now(); auto loc = image_buffer.GetImageSlot(); - while (loc == nullptr && !cancelled && std::chrono::steady_clock::now() - t0 < WRITER_WAIT) { + while (loc == nullptr && std::chrono::steady_clock::now() - t0 < WRITER_WAIT) { std::this_thread::sleep_for(std::chrono::milliseconds(1)); loc = image_buffer.GetImageSlot(); }