Project

General

Profile

Bug #4851 » om_retry_time.patch

Igor Mokrushin, 2018-01-19 23:06

View differences:

tvheadend_ndms-bad/src/epggrab/otamux.c 2018-01-20 00:58:08.824625847 +0300
506 506
  tvhtrace(LS_EPGGRAB, "ota - kick callback");
507 507

508 508
next_one:
509
  om->om_retry_time = 0;
509 510
  /* Find the mux */
510 511
  mm = mpegts_mux_find(om->om_mux_uuid);
511 512
  if (!mm) {
......
610 611

611 612
done:
612 613
  om = TAILQ_FIRST(&epggrab_ota_pending);
613
  if (networks_count < ARRAY_SIZE(networks) && om && om->om_retry_time < mclk())
614
  if (networks_count < ARRAY_SIZE(networks) && om && om->om_retry_time > mclk())
614 615
    goto next_one;
615 616
  if (kick)
616 617
    epggrab_ota_kick(64); /* a random number? */
(1-1/2)