Skip to content

Commit 8752347

Browse files
committed
bug: fix pause after round restore
1 parent 1afe490 commit 8752347

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/FiveStack.Commands/BackupRounds.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ public async void OnApiResetRound(CCSPlayerController? player, CommandInfo comma
6363

6464
_gameServer.SendCommands(new[] { $"mp_backup_restore_load_file {backupRoundFile}" });
6565

66-
await Task.Delay(10 * 1000);
66+
Server.NextFrame(() =>
67+
{
68+
_matchService.GetCurrentMatch()?.PauseMatch();
69+
});
70+
71+
await Task.Delay(5 * 1000);
6772

6873
Server.NextFrame(() =>
6974
{

0 commit comments

Comments
 (0)