···11251125 /* a cache can only have outputs or inputs, not both */
11261126 if (cache->output_count > 0) {
11271127 cache->current.active = true;
11281128- if (cache->stop_output_time < time) {
11281128+ if (cache->stop_output_time > 0 && cache->stop_output_time < time) {
11291129 oxr_action_cache_stop_output(log, sess, cache);
11301130 }
11311131 } else if (cache->input_count > 0) {