added client command update
all clients will now be upadeted with the client command of a new connecting client
This commit is contained in:
parent
1ebde0f0ed
commit
79e6e425dc
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue