lib/pigato/base.rb in pigato-0.4.1 vs lib/pigato/base.rb in pigato-0.4.2
- old
+ new
@@ -50,10 +50,10 @@
socket = ctx.socket ZMQ::DEALER
socket.identity = SecureRandom.uuid
socket.connect @broker
- if @conf[:timeout] then
+ if !@conf[:timeout].nil? then
socket.rcvtimeo = @conf[:timeout];
end
@@sockets[get_iid] = socket
}