app/models/extface/driver_base.rb in extface-0.0.6 vs app/models/extface/driver_base.rb in extface-0.0.7
- old
+ new
@@ -26,10 +26,10 @@
end
def push(buffer)
if @job
- Timeout.timeout(10) do
+ Timeout.timeout(Extface.device_timeout) do
Extface.redis_block do |r|
r.subscribe(@job.id) do |on| #blocking until delivered
on.subscribe do |channel, subscriptions|
@job.rpush buffer
end