You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-14 22:26:29 +09:00
Recycling problems hopefully fully fixed now. Library message now also recycled.
This commit is contained in:
@@ -73,7 +73,13 @@ namespace ManyServer
|
||||
var conns = Server.Connections;
|
||||
|
||||
// resend to ONE random connection
|
||||
Server.SendMessage(outMsg, conns[NetRandom.Instance.Next(0, conns.Count)], NetDeliveryMethod.ReliableOrdered, 0);
|
||||
//Server.SendMessage(outMsg, conns[NetRandom.Instance.Next(0, conns.Count)], NetDeliveryMethod.ReliableOrdered, 0);
|
||||
|
||||
List<NetConnection> rec = new List<NetConnection>();
|
||||
rec.AddRange(conns);
|
||||
rec.Remove(inc.SenderConnection);
|
||||
if (rec.Count > 0)
|
||||
Server.SendMessage(outMsg, rec, NetDeliveryMethod.ReliableOrdered, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user