From fe6a0333e474945e28a89434131d29f2be3b74f0 Mon Sep 17 00:00:00 2001
From: Tommy Persson <tommy.persson@liu.se>
Date: Tue, 6 Jun 2023 16:14:18 +0200
Subject: [PATCH] Bug fix

---
 lrs_exec/executors/remote.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lrs_exec/executors/remote.py b/lrs_exec/executors/remote.py
index 5f4b97d..2ba2ba9 100644
--- a/lrs_exec/executors/remote.py
+++ b/lrs_exec/executors/remote.py
@@ -187,7 +187,7 @@ class RemoteExecutor(TickedExecutor):
                             fail_reason = jobj["fail-reason"]
                             self.fail(f"start task failed: {fail_reason}")
                             return
-                        if jobj["response"] != "finished":
+                        if jobj["response"] == "finished":
                             finished_flag = True
                         
 
-- 
GitLab