diff --git a/src/player.rs b/src/player.rs index e5d363b..1f47fdb 100644 --- a/src/player.rs +++ b/src/player.rs @@ -266,7 +266,7 @@ impl Handler for PlayerActor { if packet.user_id == self.id { match packet.data { PacketData::HolePunch(_) => { - info!("got hole punch!"); + trace!("got hole punch!"); return; } @@ -277,23 +277,7 @@ impl Handler for PlayerActor { .write_sender .send(WriteMessage::Data(Packet { user_id: 0, - udp: false, - data: PacketData::HolePunch(HolePunch), - })) - .map_err(drop); - let _ = self - .write_sender - .send(WriteMessage::Data(Packet { - user_id: 0, - udp: false, - data: PacketData::HolePunch(HolePunch), - })) - .map_err(drop); - let _ = self - .write_sender - .send(WriteMessage::Data(Packet { - user_id: 0, - udp: false, + udp: true, data: PacketData::HolePunch(HolePunch), })) .map_err(drop);