lib/junkie/pyload/observer.rb in junkie-0.0.4 vs lib/junkie/pyload/observer.rb in junkie-0.0.5
- old
+ new
@@ -108,10 +108,10 @@
log.debug("Watchdog timer has been fired")
in_fiber {
catch(:break) {
queue_data = @api.call(:getQueueData)
- if queue_data.empty?
+ if queue_data.empty? and @active_episode.nil?
log.info("Empty Pyload queue, I cancel the watchdog timer")
@watchdog_enabled = false
throw :break
end