Clients that are waiting for very old events are kicked

This commit is contained in:
juanjp600
2017-03-01 16:40:07 -03:00
parent 1b6468e1ec
commit e681a2d29a
5 changed files with 23 additions and 3 deletions

View File

@@ -1327,7 +1327,7 @@ namespace Barotrauma.Networking
}
}
private void DisconnectClient(NetConnection senderConnection, string msg = "", string targetmsg = "")
public void DisconnectClient(NetConnection senderConnection, string msg = "", string targetmsg = "")
{
Client client = connectedClients.Find(x => x.Connection == senderConnection);
if (client == null) return;
@@ -1335,7 +1335,7 @@ namespace Barotrauma.Networking
DisconnectClient(client, msg, targetmsg);
}
private void DisconnectClient(Client client, string msg = "", string targetmsg = "")
public void DisconnectClient(Client client, string msg = "", string targetmsg = "")
{
if (client == null) return;