Skip to content

Commit

Permalink
fix quit method to really quit dbus loop ( for efficient there is tim…
Browse files Browse the repository at this point in the history
…eout )w
  • Loading branch information
jreidinger committed Dec 14, 2011
1 parent bfa6d65 commit 3791e4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dbus/bus.rb
Expand Up @@ -827,8 +827,9 @@ def run
end
end
while not @quitting and not @buses.empty?
ready, dum, dum = IO.select(@buses.keys)
ready.each do |socket|
ready = IO.select(@buses.keys,[],[],5) #timeout 5 seconds
continue unless ready #timeout exceed so continue unless quitting
ready.first.each do |socket|
b = @buses[socket]
begin
b.update_buffer
Expand Down

0 comments on commit 3791e4a

Please sign in to comment.