From f04d2217624e35b9bb8b1fada7210af80eef2348 Mon Sep 17 00:00:00 2001 From: Dag Odenhall Date: Sat, 19 Apr 2008 15:59:33 +0200 Subject: [PATCH] Threadify property runs --- lib/amazing/cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/amazing/cli.rb b/lib/amazing/cli.rb index 1b633d9..9c1d905 100644 --- a/lib/amazing/cli.rb +++ b/lib/amazing/cli.rb @@ -257,10 +257,10 @@ module Amazing begin mod = Widgets.const_get(widget[:module]).new(widget.merge(:iteration => iteration)) if widget[:properties].empty? - @awesome.widget_tell(screen, statusbar, widget[:identifier], widget[:property], mod.formatize) + Thread.new { @awesome.widget_tell(screen, statusbar, widget[:identifier], widget[:property], mod.formatize) } end widget[:properties].each do |property, format| - @awesome.widget_tell(screen, statusbar, widget[:identifier], property, mod.formatize(format)) + Thread.new { @awesome.widget_tell(screen, statusbar, widget[:identifier], property, mod.formatize(format)) } end rescue WidgetError => e @log.error(widget[:module]) { e.message } -- 2.11.4.GIT