workaround progression pipe bug
[booh] / bin / booh
index 72412fddab5cd36d730c91999da0166e7c172757..5766217ce57cc70ddd8ba30eb0682d7a15abd51c 100644 (file)
--- a/bin/booh
+++ b/bin/booh
@@ -2126,6 +2126,8 @@ def backend_wait_message(parent, msg, infopipe_path, mode)
     infopipe = File.open(infopipe_path, File::RDONLY | File::NONBLOCK)
     refresh_thread = Thread.new {
         directories_counter = 0
+        #- immediately stops if trying to read before file is written from backend.. simple dirty solution for the moment
+        sleep 1 
         while line = infopipe.gets
             msg 3, "infopipe got data: #{line}"
             if line =~ /^directories: (\d+), sizes: (\d+)/