diff --git a/src/event_loop/background_thread.rs b/src/event_loop/background_thread.rs index 55b1c53c..b2852eeb 100644 --- a/src/event_loop/background_thread.rs +++ b/src/event_loop/background_thread.rs @@ -83,6 +83,8 @@ lazy_static::lazy_static! { impl Clone for WorkerThreadHandle { fn clone(&self) -> Self { + self.reference_count.fetch_add(1, Ordering::SeqCst); + Self { tasks_sender: self.tasks_sender.clone(), reference_count: self.reference_count.clone(),