[Add] Client is informed about no roh (generic error)
[Todo] specify
This commit is contained in:
parent
05006980f7
commit
b7e395dd71
2 changed files with 40 additions and 30 deletions
|
|
@ -47,6 +47,16 @@ impl ClientConnection {
|
|||
}
|
||||
self_clone.handle_close().await;
|
||||
});
|
||||
|
||||
let self_clone2 = self.clone();
|
||||
tokio::spawn(async move {
|
||||
tokio::time::sleep(Duration::from_millis(50)).await;
|
||||
if self_clone2.get_rho_connection().await.is_none() {
|
||||
self_clone2
|
||||
.send_error_response(0, CommunicationType::error)
|
||||
.await;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/// Get the user ID
|
||||
|
|
@ -499,6 +509,8 @@ impl ClientConnection {
|
|||
msg_type,
|
||||
msg_id
|
||||
);
|
||||
self.send_error_response(msg_id, CommunicationType::error)
|
||||
.await;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue