From 0e493c1d532977b4ee464ec9547d7146138cb98e Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 3 May 2012 07:27:11 -0400 Subject: [PATCH] more --- bin/unison-watch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/unison-watch b/bin/unison-watch index a406869..8139560 100755 --- a/bin/unison-watch +++ b/bin/unison-watch @@ -17,7 +17,7 @@ SYNC_CHECK_TIME = 0.1 @sync_now = false def <<(dirs) - @queue.update { |q| q += dirs ; q } + @queue.update { |q| q += [ dirs ].flatten ; q } end public :<< @@ -29,7 +29,6 @@ def check begin if @queue.value.length > 0 || remote_sync_check == 0 || @sync_now dir = nil - @queue.update { |q| ; dir = q.shift ; q } @status.text = "Syncing..." @@ -50,6 +49,7 @@ def check remote_sync_check = SYNC_CHECK_COUNT @sync_now = false + @queue.update { [] } end rescue => e puts e.message