Skip to content

Commit

Permalink
Merge pull request #287 from adwhit/alex/fix-deadlock
Browse files Browse the repository at this point in the history
Drop model to avoid deadlock
  • Loading branch information
charypar authored Nov 19, 2024
2 parents f7473c5 + fcb86eb commit 7c4836a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crux_core/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ where

self.app.update(event, &mut model, &self.capabilities);

// drop the model here, we don't want to hold the lock for the process() call
drop(model);

self.process()
}
// ANCHOR_END: process_event
Expand Down

0 comments on commit 7c4836a

Please sign in to comment.