Skip to content

Commit

Permalink
Thread initial updating of non-interval widgets smarter
Browse files Browse the repository at this point in the history
* lib/amazing/cli.rb: (run) thread update_non_interval
and join with interval threads.
(update_non_interval) don't join threads just yet.
  • Loading branch information
dag committed Apr 25, 2008
1 parent 496f357 commit cade380
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/amazing/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def run
explicit_updates unless @options[:update] == []
stop_process
save_pid
update_non_interval
@threads << Thread.new { update_non_interval }
@config[:awesome].each do |awesome|
awesome[:widgets].each do |widget|
if widget[:interval]
Expand Down Expand Up @@ -242,7 +242,6 @@ def update_non_interval
end
end
end
@threads.each {|t| t.join }
end

def update_widget(screen, statusbar, widget, iteration=0)
Expand Down

0 comments on commit cade380

Please sign in to comment.