src/Pure/Thy/export.scala
changeset 75762 985c3a64748c
parent 75759 0cdccd0d1699
child 75764 07e097f60b85
--- a/src/Pure/Thy/export.scala	Fri Aug 05 13:34:47 2022 +0200
+++ b/src/Pure/Thy/export.scala	Fri Aug 05 13:43:14 2022 +0200
@@ -239,9 +239,9 @@
             (results, true)
           })
 
-    def apply(session_name: String, args: Protocol.Export.Args, body: Bytes): Unit = {
-      if (!progress.stopped) {
-        consumer.send(make_entry(session_name, args, body, cache) -> args.strict)
+    def make_entry(session_name: String, args: Protocol.Export.Args, body: Bytes): Unit = {
+      if (!progress.stopped && !body.is_empty) {
+        consumer.send(Export.make_entry(session_name, args, body, cache) -> args.strict)
       }
     }