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:
parent
7edc209fc8
commit
d91c9bfd3b
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue