Skip to content

Commit

Permalink
Don't loop connect packet back to peer
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jan 17, 2025
1 parent 0efd971 commit 34a2beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fika.Core/Networking/FikaServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ private void OnLoadingProfilePacketReceived(LoadingProfilePacket packet, NetPeer
{
notifPacket.SubPacket.Execute();
}
SendDataToAll(ref notifPacket, DeliveryMethod.ReliableOrdered);
SendDataToAll(ref notifPacket, DeliveryMethod.ReliableOrdered, peer);

peer.Tag = kvp.Key.Nickname;
}
Expand Down Expand Up @@ -1434,7 +1434,7 @@ public void OnPeerDisconnected(NetPeer peer, DisconnectInfo disconnectInfo)
};

packet.SubPacket.Execute();
SendDataToAll(ref packet, DeliveryMethod.ReliableOrdered);
SendDataToAll(ref packet, DeliveryMethod.ReliableOrdered, peer);
}

if (netServer.ConnectedPeersCount == 0)
Expand Down

0 comments on commit 34a2beb

Please sign in to comment.