From 740ad72798cda8dbeaca2b13b89912763455e98f Mon Sep 17 00:00:00 2001 From: zhangnew <9146834+zhangnew@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:03:18 +0800 Subject: [PATCH] fix task status when the output is empty --- Launcher/Helper/CLTaskManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Launcher/Helper/CLTaskManager.swift b/Launcher/Helper/CLTaskManager.swift index 5b65f02..b48fb49 100644 --- a/Launcher/Helper/CLTaskManager.swift +++ b/Launcher/Helper/CLTaskManager.swift @@ -374,7 +374,7 @@ class CLTaskManager: NSObject { } } else if output == nil { RunLoop.main.perform { - if CLStore.shared.taskProcesses[task.id.uuidString] != nil { + if CLStore.shared.taskProcesses[task.id.uuidString] == nil { CLStore.shared.taskProcesses[task.id.uuidString] = process DispatchQueue.global(qos: .background).async { self.sendNotification(forTask: task, started: true)