exit_on_empty default true!

This commit is contained in:
Denis Knauf 2010-03-31 00:19:43 +02:00
parent dc294bb63e
commit 66ce7eb209

View file

@ -20,7 +20,7 @@ class Select
def initialize timeout = 30
@read, @write, @error = {}, {}, {}
@read.default = @write.default = @error.default = lambda{}
@timeout, @tevent, @exit = timeout, lambda{}, false
@timeout, @tevent, @exit, @exit_on_empty = timeout, lambda{}, false, true
end
def timeout timeout = nil, &event