X-Git-Url: http://git.zarb.org/?p=booh;a=blobdiff_plain;f=bin%2Fbooh;h=5766217ce57cc70ddd8ba30eb0682d7a15abd51c;hp=6212297ae91e2683dd0f516ee15afa33370b61f3;hb=cce15a2ad8851a702f9617db6bf2d627ce5e03da;hpb=c13b9a7bdd6079efc0715fdf50609e44255453b1;ds=sidebyside diff --git a/bin/booh b/bin/booh index 6212297..5766217 100644 --- a/bin/booh +++ b/bin/booh @@ -36,7 +36,7 @@ require 'gettext' include GetText bindtextdomain("booh") -require 'booh/rexml/document' +require 'rexml/document' 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 + #- 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+)/