workaround progression pipe bug
[booh] / bin / booh
index 6212297ae91e2683dd0f516ee15afa33370b61f3..5766217ce57cc70ddd8ba30eb0682d7a15abd51c 100644 (file)
--- a/bin/booh
+++ b/bin/booh
@@ -36,7 +36,7 @@ require 'gettext'
 include GetText
 bindtextdomain("booh")
 
 include GetText
 bindtextdomain("booh")
 
-require 'booh/rexml/document'
+require 'rexml/document'
 include REXML
 
 require 'booh/booh-lib'
 include REXML
 
 require 'booh/booh-lib'
@@ -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
     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+)/
         while line = infopipe.gets
             msg 3, "infopipe got data: #{line}"
             if line =~ /^directories: (\d+), sizes: (\d+)/