Revert "Фикс вылетов сервера при голосовании за кик" (#1636)
This commit is contained in:
parent
099a74bcdc
commit
571dac8c3e
2 changed files with 2 additions and 7 deletions
|
|
@ -65,8 +65,6 @@ namespace Content.Server.GameTicking
|
|||
// Sunrise-Queue-Start
|
||||
if (!IoCManager.Instance!.TryResolveType<IServerJoinQueueManager>(out _))
|
||||
Timer.Spawn(0, () => _playerManager.JoinGame(args.Session));
|
||||
else
|
||||
_userDb.ClientConnected(session);
|
||||
// Sunrise-Queue-End
|
||||
|
||||
var record = await _db.GetPlayerRecordByUserId(args.Session.UserId);
|
||||
|
|
@ -109,10 +107,7 @@ namespace Content.Server.GameTicking
|
|||
|
||||
case SessionStatus.InGame:
|
||||
{
|
||||
// Sunrise-Queue-Start
|
||||
if (!IoCManager.Instance!.TryResolveType<IServerJoinQueueManager>(out _))
|
||||
_userDb.ClientConnected(session);
|
||||
// Sunrise-Queue-End
|
||||
_userDb.ClientConnected(session);
|
||||
|
||||
if (mind == null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -406,7 +406,7 @@ public sealed class PlayTimeTrackingManager : ISharedPlaytimeManager, IPostInjec
|
|||
|
||||
public Dictionary<string, TimeSpan> GetTrackerTimes(ICommonSession id)
|
||||
{
|
||||
if (!_playTimeData.TryGetValue(id.UserId, out var data) || !data.Initialized) // Sunrise-Edit
|
||||
if (!_playTimeData.TryGetValue(id.UserId, out var data) || !data.Initialized)
|
||||
throw new InvalidOperationException("Play time info is not yet loaded for this player!");
|
||||
|
||||
return data.TrackerTimes;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue