From c219880f3b08c23444383fb7a50e5123649ae1a2 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld <4404502+Drakulix@users.noreply.github.com> Date: Thu, 5 Oct 2023 19:29:42 +0200 Subject: [PATCH] Update src/loop_logic.rs Co-authored-by: Elinor B. <3009227+elinorbgr@users.noreply.github.com> --- src/loop_logic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/loop_logic.rs b/src/loop_logic.rs index 324af516..258848c5 100644 --- a/src/loop_logic.rs +++ b/src/loop_logic.rs @@ -488,6 +488,7 @@ impl<'l, Data> EventLoop<'l, Data> { .sources .borrow_mut() .get_mut(registroken_token) + .unwrap_or(&mut None) .take(); } PostAction::Continue => {}