From 4e676112f611732b11843c19613331dd7b9b3272 Mon Sep 17 00:00:00 2001 From: Kirill Krylov Date: Thu, 23 Nov 2023 23:21:58 +0200 Subject: [PATCH] Added delay before calling download Signed-off-by: Kirill Krylov --- clio/Command/TurnFsmCommand.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/clio/Command/TurnFsmCommand.cs b/clio/Command/TurnFsmCommand.cs index 0ab5ca00..884384f1 100644 --- a/clio/Command/TurnFsmCommand.cs +++ b/clio/Command/TurnFsmCommand.cs @@ -1,4 +1,6 @@ -using CommandLine; +using System; +using System.Threading; +using CommandLine; namespace Clio.Command; @@ -34,6 +36,7 @@ public TurnFsmCommand(SetFsmConfigCommand setFsmConfigCommand, public override int Execute(TurnFsmCommandOptions options){ if (options.IsFsm == "on") { if (_setFsmConfigCommand.Execute(options) == 0) { + Thread.Sleep(TimeSpan.FromSeconds(3)); return _loadPackagesToFileSystemCommand.Execute(options); } } else {