Index: trunk/ippTasks/lossy_compress.pro
===================================================================
--- trunk/ippTasks/lossy_compress.pro	(revision 28139)
+++ trunk/ippTasks/lossy_compress.pro	(revision 31854)
@@ -122,11 +122,9 @@
 
     task.exec
+        periods -exec $RUNEXEC
+
+	book npages compPendingCompress -var N
+	if ($N == 0) break
 	if ($NETWORK == 0) break
-	book npages compPendingCompress -var N
-	if ($N == 0) 
-	    periods -exec $RUNEXEC
-	    break
-	end
-	periods -exec 0.05
 
 	# look for new images
@@ -171,4 +169,5 @@
 	    echo command $run
 	end
+	periods -exec 0.05
 	command $run
     end
@@ -248,11 +247,9 @@
 
     task.exec
+        periods -exec $RUNEXEC
+
+	book npages compPendingClean -var N
+	if ($N == 0) break
 	if ($NETWORK == 0) break
-	book npages compPendingClean -var N
-	if ($N == 0) 
-	    periods -exec $RUNEXEC
-	    break
-	end
-	periods -exec 0.05
 
 	# look for new images
@@ -297,4 +294,5 @@
 	    echo command $run
 	end
+	periods -exec 0.05
 	command $run
     end
