Skip to content

Commit 8f7535a

Browse files
authored
Merge pull request #48 from Sadzurami/feat/remove-5s-delays
feat/remove-5s-delays
2 parents 64c5642 + b4397ae commit 8f7535a

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

BotLooter/FlowUtils.cs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,9 @@ public static void WaitForApproval(string messageTemplate, params object[] args)
2525
{
2626
Log.Logger.Information("Нажмите любую клавишу для продолжения.");
2727
Console.ReadKey();
28-
Console.CursorLeft = 0;
29-
}
30-
else
31-
{
32-
Log.Logger.Information("Ожидаю 5 секунд до продолжения.");
33-
Thread.Sleep(TimeSpan.FromSeconds(5));
34-
Console.CursorLeft = 0;
3528
}
29+
30+
Console.CursorLeft = 0;
3631
}
3732

3833
public static void WaitForExit(string? message = null)
@@ -58,13 +53,8 @@ public static void WaitForExit(string? message = null)
5853
}
5954
}
6055

61-
Environment.Exit(0);
62-
}
63-
else
64-
{
65-
Log.Logger.Information("Выхожу через 5 секунд.");
66-
Thread.Sleep(TimeSpan.FromSeconds(5));
67-
Environment.Exit(0);
6856
}
57+
58+
Environment.Exit(0);
6959
}
7060
}

0 commit comments

Comments
 (0)