diff --git a/Cli/Program.cs b/Cli/Program.cs index 856d74762..f1b3249e2 100644 --- a/Cli/Program.cs +++ b/Cli/Program.cs @@ -995,11 +995,8 @@ public static int RunCollectCommand(CollectCommandOptions opts) try { DatabaseManager.BeginTransaction(); - - Task.Run(() => - { - c.TryExecute(); - }); + + c.TryExecute(); while(c.RunStatus == RUN_STATUS.RUNNING) {