|
@ -199,7 +199,7 @@ pub fn login_listen_mainloop<EG: EntityGateway + 'static>(state: Arc<Mutex<Chara |
|
|
{
|
|
|
{
|
|
|
let mut state = state.lock().await;
|
|
|
let mut state = state.lock().await;
|
|
|
let local_sender = client_sender.clone();
|
|
|
let local_sender = client_sender.clone();
|
|
|
state.set_sender(server_id, Box::new(|message| {
|
|
|
|
|
|
|
|
|
state.set_sender(server_id, Box::new(move |message| {
|
|
|
async_std::task::block_on(local_sender.send(message));
|
|
|
async_std::task::block_on(local_sender.send(message));
|
|
|
}))
|
|
|
}))
|
|
|
}
|
|
|
}
|
|
|