aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src/logic/connection_error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'filamento/src/logic/connection_error.rs')
-rw-r--r--filamento/src/logic/connection_error.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/filamento/src/logic/connection_error.rs b/filamento/src/logic/connection_error.rs
index ac9e931..081900b 100644
--- a/filamento/src/logic/connection_error.rs
+++ b/filamento/src/logic/connection_error.rs
@@ -1,12 +1,7 @@
use lampada::error::ConnectionError;
-use crate::UpdateMessage;
-
use super::ClientLogic;
pub async fn handle_connection_error(logic: ClientLogic, error: ConnectionError) {
- logic
- .update_sender()
- .send(UpdateMessage::Error(error.into()))
- .await;
+ logic.handle_error(error.into()).await;
}