Commit 399cf71322c670fb18cbb9885c8f9090f8ef0324

Thomas de Grivel 2019-10-15T16:29:32

fix infinite loop

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/core/operation.lisp b/core/operation.lisp
index 033ad60..cd34c7f 100644
--- a/core/operation.lisp
+++ b/core/operation.lisp
@@ -137,6 +137,8 @@
          (sorted-ops (sort-operations res operations))
          (results))
     (loop
+       (when (endp sorted-ops)
+         (return))
        (let* ((op (pop sorted-ops))
               (result (apply (operation-generic-function op)
                              res os plist)))