tuned;
authorwenzelm
Tue, 05 Mar 2024 21:44:52 +0100
changeset 79795 3b1ad072d59a
parent 79794 aa03d1a94e3e
child 79798 384d6d48a7d3
child 79801 60dd45996a6b
tuned;
src/Pure/Build/build_process.scala
--- a/src/Pure/Build/build_process.scala	Tue Mar 05 21:26:18 2024 +0100
+++ b/src/Pure/Build/build_process.scala	Tue Mar 05 21:44:52 2024 +0100
@@ -1126,18 +1126,15 @@
 
   protected def main_unsynchronized(): Unit = {
     for (job <- _state.build_running.filter(_.is_finished)) {
-      job.join_build match {
-        case None =>
-          _state = _state.remove_running(job.name)
-        case Some(result) =>
-          val result_name = (job.name, worker_uuid, build_uuid)
-          _state = _state.
-            remove_pending(job.name).
-            remove_running(job.name).
-            make_result(result_name,
-              result.process_result,
-              result.output_shasum,
-              node_info = job.node_info)
+      _state = _state.remove_running(job.name)
+      for (result <- job.join_build) {
+        val result_name = (job.name, worker_uuid, build_uuid)
+        _state = _state.
+          remove_pending(job.name).
+          make_result(result_name,
+            result.process_result,
+            result.output_shasum,
+            node_info = job.node_info)
       }
     }