- fixed ReliableChannel going crazy if a client disconnects and reconnects immediately after: the client created a new ReliableChannel but the server was still using the old one, causing the client to rerequest a ton of messages (now the server resets the channel when a client rejoins and reliablechannel resets itself if the message IDs are too far apart)
- syncing statuseffects caused by using an item on self
This commit is contained in:
@@ -689,6 +689,7 @@ namespace Barotrauma.Networking
|
||||
if (existingClient != null)
|
||||
{
|
||||
existingClient.Connection = inc.SenderConnection;
|
||||
existingClient.ReliableChannel = new ReliableChannel(server);
|
||||
inc.SenderConnection.Approve();
|
||||
return;
|
||||
}
|
||||
@@ -1671,7 +1672,7 @@ namespace Barotrauma.Networking
|
||||
if (client.FileStreamSender != null) client.FileStreamSender.Dispose();
|
||||
}
|
||||
|
||||
server.Shutdown("The server has shut down");
|
||||
server.Shutdown("The server has been shut down");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user