|
@ -205,6 +205,7 @@ where |
|
|
loop {
|
|
|
loop {
|
|
|
match packet_queue.recv().await {
|
|
|
match packet_queue.recv().await {
|
|
|
Ok(pkt) => {
|
|
|
Ok(pkt) => {
|
|
|
|
|
|
info!("[send to {:?}] {:#?}", client_id, pkt);
|
|
|
if let Err(err) = send_pkt(&mut socket, &mut cipher, &pkt).await {
|
|
|
if let Err(err) = send_pkt(&mut socket, &mut cipher, &pkt).await {
|
|
|
warn!("error sending pkt {:#?} to {:?} {:?}", pkt, client_id, err);
|
|
|
warn!("error sending pkt {:#?} to {:?} {:?}", pkt, client_id, err);
|
|
|
}
|
|
|
}
|
|
|