~starkingdoms/starkingdoms

46d3a796f22ff95d2126226e652c86d08696d16c — core 2 years ago 6a78f8f
change failures into warnings
1 files changed, 4 insertions(+), 4 deletions(-)

M server/src/timer.rs
M server/src/timer.rs => server/src/timer.rs +4 -4
@@ 1,5 1,5 @@
use std::{time::Duration, sync::Arc};
use log::{error};
use log::{error, warn};
use nalgebra::vector;
use rapier2d_f64::prelude::{PhysicsPipeline};
use async_std::sync::RwLock;


@@ 87,7 87,7 @@ pub async fn timer_main(mgr: ClientManager, physics_data: Arc<RwLock<PhysicsData
                    match client_thread.tx.send(ClientHandlerMessage::PlayersUpdate {players: protocol_players.clone()}).await {
                        Ok(_) => (),
                        Err(e) => {
                            error!("unable to send position packet: {}", e);
                            warn!("unable to send position packet: {}", e);
                        }
                    };



@@ 96,12 96,12 @@ pub async fn timer_main(mgr: ClientManager, physics_data: Arc<RwLock<PhysicsData
                    match client_thread.tx.send(planet_data).await {
                        Ok(_) => (),
                        Err(e) => {
                            error!("unable to send earth packet: {}", e);
                            warn!("unable to send earth packet: {}", e);
                        }
                    };
                }
                Err(e) => {
                    error!("unable to update a client thread: {}", e);
                    warn!("unable to update a client thread: {}", e);
                    to_remove.push(addr);
                }
            }