You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-17 07:36:32 +09:00
Bug not detecting multiple sends of same message fixed
This commit is contained in:
@@ -27,6 +27,18 @@ namespace UnitTests
|
||||
|
||||
EncryptionTests.Run(peer);
|
||||
|
||||
var om = peer.CreateMessage();
|
||||
peer.SendUnconnectedMessage(om, new IPEndPoint(IPAddress.Loopback, 14242));
|
||||
try
|
||||
{
|
||||
peer.SendUnconnectedMessage(om, new IPEndPoint(IPAddress.Loopback, 14242));
|
||||
}
|
||||
catch (NetException nex)
|
||||
{
|
||||
if (nex.Message != "This message has already been sent! Use NetPeer.SendMessage() to send to multiple recipients efficiently")
|
||||
throw nex;
|
||||
}
|
||||
|
||||
peer.Shutdown("bye");
|
||||
|
||||
// read all message
|
||||
|
||||
Reference in New Issue
Block a user