/// <summary> /// Disconnects a client from this listener /// </summary> /// <param name="client">The target client to be disconnected</param> public void Disconnect(NetworkingPlayer player, bool forced) { commonServerLogic.Disconnect(player, forced, DisconnectingPlayers, ForcedDisconnectingPlayers); if (!PendingCommitDisconnects) { PendingCommitDisconnects = true; Task.Queue(() => { PendingCommitDisconnects = false; CommitDisconnects(); }, 30000); } }
/// <summary> /// Disconnects a client /// </summary> /// <param name="client">The target client to be disconnected</param> /// <summary> ///断开一个客户端 /// </ summary> /// <param name =“client”>要断开连接的目标客户端</ param> public void Disconnect(NetworkingPlayer player, bool forced) { commonServerLogic.Disconnect(player, forced, DisconnectingPlayers, ForcedDisconnectingPlayers); }