diff --git a/src/service.rs b/src/service.rs index 0247a2e..e026b0f 100644 --- a/src/service.rs +++ b/src/service.rs @@ -8,7 +8,7 @@ pub struct SessionService { #[dbus_interface(name = "com.system76.CosmicSession")] impl SessionService { - async fn exit(&mut self) { + fn exit(&mut self) { match self.exit_tx.take() { Some(tx) => { tx.send(()).ok(); @@ -18,4 +18,8 @@ impl SessionService { } } } + + fn restart(&self) { + warn!("restarting session"); + } }