Fix dropping unvalidated clients.
This commit is contained in:
@@ -353,6 +353,10 @@ namespace OpenRA.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void DropClient(Connection toDrop)
|
public void DropClient(Connection toDrop)
|
||||||
|
{
|
||||||
|
if (preConns.Contains(toDrop))
|
||||||
|
preConns.Remove(toDrop);
|
||||||
|
else
|
||||||
{
|
{
|
||||||
conns.Remove(toDrop);
|
conns.Remove(toDrop);
|
||||||
SendChat(toDrop, "Connection Dropped");
|
SendChat(toDrop, "Connection Dropped");
|
||||||
@@ -366,6 +370,7 @@ namespace OpenRA.Server
|
|||||||
|
|
||||||
if (conns.Count != 0)
|
if (conns.Count != 0)
|
||||||
SyncLobbyInfo();
|
SyncLobbyInfo();
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user