blob: ac9e9310559e683453fb28dfb5a790eef15f8b25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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;
}
|