Skip to content

Commit

Permalink
fix a bug where resetting without a websocket connection causes annel…
Browse files Browse the repository at this point in the history
…id to hang
  • Loading branch information
dagit committed Aug 3, 2022
1 parent d90e09e commit fadd5a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,9 @@ impl eframe::App for LiveSplitCoreRenderer {
if input.consume_key(hot_key.modifiers, hot_key.key) {
self.timer.write().reset(true);
if self.app_config.use_autosplitter == Some(YesOrNo::Yes) {
self.thread_chan.send(ThreadEvent::TimerReset).unwrap_or(());
self.thread_chan
.try_send(ThreadEvent::TimerReset)
.unwrap_or(());
}
}
}
Expand Down

0 comments on commit fadd5a9

Please sign in to comment.