mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-11-16 07:48:11 +01:00
Stop Snowcap on drop
Prevents a hang on panic
This commit is contained in:
parent
51589cf484
commit
ebba3db6d0
1 changed files with 8 additions and 0 deletions
|
@ -183,6 +183,14 @@ pub struct Pinnacle {
|
|||
pub cursor_state: CursorState,
|
||||
}
|
||||
|
||||
impl Drop for Pinnacle {
|
||||
fn drop(&mut self) {
|
||||
if let Some(signal) = self.snowcap_stop_signal.take() {
|
||||
signal.stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl State {
|
||||
pub fn on_event_loop_cycle_completion(&mut self) {
|
||||
self.pinnacle.fixup_z_layering();
|
||||
|
|
Loading…
Reference in a new issue