summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-03-02 22:36:06 +0100
committertroido <troido@protonmail.com>2020-03-02 22:36:06 +0100
commita8d0e075613cc973b66c37510103108362fe7d3d (patch)
treeaf5aeeb98bfbd7f033a78d1f4bfca0c38320bc2c /src/main.rs
parent22168c8eedac95fdfde9a536a1d1f6ddf622cfa1 (diff)
don't cache messages between reconnecting
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 5ee6183..96844d3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -111,6 +111,7 @@ fn main() -> Result<()>{
}
Action::Leave(player) => {
world.remove_player(&player)?;
+ message_cache.remove(&player);
}
}
}