chiark / gitweb /
fix access saving (!)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Nov 2020 22:25:27 +0000 (22:25 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 22 Nov 2020 22:28:36 +0000 (22:28 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bin/daemon-otter.rs
src/global.rs

index 4cfefbc0af700dc538297c73e7003189aa45f0b5..56e47f6fbb3447664c7bb40b7d60ef07428f82a1 100644 (file)
@@ -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
index 9719451c04c0b922377e3c6c21ccca1950ad6208..5550880d98243e68a39a0fffeebbc649e915b91c 100644 (file)
@@ -686,6 +686,7 @@ impl<'ig> InstanceGuard<'ig> {
         acctid
       };
       self.token_register(token.clone(), iad);
+      self.save_access_now()?;
 
       token