|
@ -23,7 +23,7 @@ fn recv_from_clientpool<STATE, S, R, E>(state: &mut STATE, |
|
|
Ok(incoming) => {
|
|
|
Ok(incoming) => {
|
|
|
match incoming {
|
|
|
match incoming {
|
|
|
ClientPoolAction::NewClient(client_id) => {
|
|
|
ClientPoolAction::NewClient(client_id) => {
|
|
|
for s in state.on_connect().into_iter() {
|
|
|
|
|
|
|
|
|
for s in state.on_connect(client_id).into_iter() {
|
|
|
match s {
|
|
|
match s {
|
|
|
OnConnect::Cipher((in_cipher, out_cipher)) => {
|
|
|
OnConnect::Cipher((in_cipher, out_cipher)) => {
|
|
|
pool_send.send(ClientAction::EncryptionKeys(client_id, in_cipher, out_cipher)).unwrap();
|
|
|
pool_send.send(ClientAction::EncryptionKeys(client_id, in_cipher, out_cipher)).unwrap();
|
|
|