fixed thread crash due to hashmap logic

the client thread would crash if it attempted to update all clients when only it existed in the hashmap
This commit is contained in:
Mitchell 2020-07-31 18:36:30 +01:00
parent 7edc209fc8
commit d91c9bfd3b
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ impl<'a> Client<'a> {
self.server.remove_client(self.uuid.as_str());
self.stream.shutdown(Shutdown::Both).expect("shutdown call failed");
//self.stream.shutdown(Shutdown::Both).expect("shutdown call failed");
let params: HashMap<String, String> = [(String::from("uuid"), self.uuid.clone())].iter().cloned().collect();
let command = Commands::ClientRemove(Some(params));