added client command update

all clients will now be upadeted with the client command of a new connecting client
This commit is contained in:
Mitch161 2020-07-17 20:49:25 +01:00
parent 1ebde0f0ed
commit 79e6e425dc
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,11 @@ impl<'server_lifetime> Server<'server_lifetime> {
self.thread_pool.execute(move || {
client.handle_connection();
});
let params: HashMap<String, String> = [(String::from("name"), username.clone()), (String::from("host"), address.clone()), (String::from("uuid"), uuid.clone())];
let new_client = Commands::Client(Some(params));
self.update_all_clients(new_client);
},
Commands::Info(None) => {
let mut params: HashMap<String, String> = HashMap::new();