feat(state): save state to ~/.local/state/stardust/<uid> on graceful disconnect

This commit is contained in:
Nova
2023-09-28 10:31:23 -04:00
parent fc45b4e400
commit 665e6b034f
2 changed files with 27 additions and 13 deletions

View File

@@ -191,7 +191,7 @@ impl Client {
}
pub async fn save_state(&self) -> Option<ClientState> {
let internal = self.root.get()?.save_state().await.ok()?;
Some(dbg!(ClientState::from_deserialized(self, internal)))
Some(ClientState::from_deserialized(self, internal))
}
#[inline]