fix udp
This commit is contained in:
parent
41694648bd
commit
7864967435
|
@ -266,7 +266,7 @@ impl Handler<Packet> 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<Packet> 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);
|
||||
|
|
Loading…
Reference in a new issue