From: Ian Jackson Date: Sun, 22 Nov 2020 22:25:27 +0000 (+0000) Subject: fix access saving (!) X-Git-Tag: otter-0.2.0~396 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=fce075b1d32c068d775ccf518f4f963a34105010;p=otter.git fix access saving (!) Signed-off-by: Ian Jackson --- diff --git a/src/bin/daemon-otter.rs b/src/bin/daemon-otter.rs index 4cfefbc0..56e47f6f 100644 --- a/src/bin/daemon-otter.rs +++ b/src/bin/daemon-otter.rs @@ -36,7 +36,6 @@ const RESOURCES : &[(&'static str, ResourceLocation, ContentType)] = &[ ("wasm.js", RL::Wasm("otter_wasm.js"), ContentType::JavaScript), ]; -// xxx access of joined game does not work after server reload?? // xxx trying to rejoin game just gives NickCollision, should be idempotent // xxx need remove game from cli // xxx need reset access from cli diff --git a/src/global.rs b/src/global.rs index 9719451c..5550880d 100644 --- a/src/global.rs +++ b/src/global.rs @@ -686,6 +686,7 @@ impl<'ig> InstanceGuard<'ig> { acctid }; self.token_register(token.clone(), iad); + self.save_access_now()?; token