Skip to content

Commit

Permalink
fix: ignore save_current_action failure (#253)
Browse files Browse the repository at this point in the history
Stops uplink on pkill even when unable to save `current_action` to disk
  • Loading branch information
amokfa authored Jul 15, 2023
1 parent 3ee408b commit bf23ae7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uplink/src/base/bridge/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ impl Bridge {
}
// Handle a shutdown signal
_ = self.ctrl_rx.recv_async() => {
self.save_current_action()?;
if let Err(e) = self.save_current_action() {
error!("Failed to save current action: {e}");
}
streams.flush_all().await;
// NOTE: there might be events still waiting for recv on bridge_rx
self.shutdown_handle.send(()).unwrap();
Expand Down

0 comments on commit bf23ae7

Please sign in to comment.