11 lines
288 B
Rust
11 lines
288 B
Rust
use {
|
|
crate::{dbus::DbusSocket, utils::errorfmt::ErrorFmt},
|
|
std::rc::Rc,
|
|
};
|
|
|
|
pub async fn handle_outgoing(socket: Rc<DbusSocket>) {
|
|
if let Err(e) = socket.bufio.clone().outgoing().await {
|
|
log::error!("{}: {}", socket.bus_name, ErrorFmt(e));
|
|
}
|
|
socket.kill();
|
|
}
|