From ba08ec0379fcbe3c62f1d209bd924de129d0f523 Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Sat, 8 Jan 2022 12:55:10 -0600 Subject: Fix more race conditions in AOLayer loading - Uninitialized exit_loop variable - Previous load task should stop completely before starting new load task --- include/aolayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/aolayer.h') diff --git a/include/aolayer.h b/include/aolayer.h index 4d2629b8..830dd697 100644 --- a/include/aolayer.h +++ b/include/aolayer.h @@ -148,7 +148,7 @@ private: // used in populate_vectors void load_next_frame(); - std::atomic_bool exit_loop; //awful solution but i'm not fucking using QThread + std::atomic_bool exit_loop = false; //awful solution but i'm not fucking using QThread QFuture frame_loader; QMutex mutex; QWaitCondition frameAdded; -- cgit