This commit is contained in:
Aubrey 2025-01-05 14:27:27 -06:00
parent 41694648bd
commit 7864967435
No known key found for this signature in database

View file

@ -266,7 +266,7 @@ impl Handler<Packet> for PlayerActor {
if packet.user_id == self.id { if packet.user_id == self.id {
match packet.data { match packet.data {
PacketData::HolePunch(_) => { PacketData::HolePunch(_) => {
info!("got hole punch!"); trace!("got hole punch!");
return; return;
} }
@ -277,23 +277,7 @@ impl Handler<Packet> for PlayerActor {
.write_sender .write_sender
.send(WriteMessage::Data(Packet { .send(WriteMessage::Data(Packet {
user_id: 0, user_id: 0,
udp: false, udp: true,
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,
data: PacketData::HolePunch(HolePunch), data: PacketData::HolePunch(HolePunch),
})) }))
.map_err(drop); .map_err(drop);