Ticket #9113: autoexpire.2.diff

File autoexpire.2.diff, 1.2 KB (added by robertm, 9 years ago)
  • mythtv/programs/mythbackend/mainserver.cpp

     
    182182    m_sched(sched), m_expirer(expirer), deferredDeleteTimer(NULL),
    183183    autoexpireUpdateTimer(NULL), m_exitCode(BACKEND_EXIT_OK)
    184184{
    185     AutoExpire::Update(true);
    186 
    187185    PreviewGeneratorQueue::CreatePreviewGeneratorQueue(
    188186        PreviewGenerator::kLocalAndRemote, ~0, 0);
    189187    PreviewGeneratorQueue::AddListener(this);
     
    228226            SLOT(deferredDeleteSlot()));
    229227    deferredDeleteTimer->start(30 * 1000);
    230228
     229    if (sched)
     230        sched->SetMainServer(this);
     231    if (expirer)
     232        expirer->SetMainServer(this);
     233
    231234    autoexpireUpdateTimer = new QTimer(this);
    232235    connect(autoexpireUpdateTimer, SIGNAL(timeout()), this,
    233236            SLOT(autoexpireUpdate()));
    234237    autoexpireUpdateTimer->setSingleShot(true);
    235238
    236     if (sched)
    237         sched->SetMainServer(this);
    238     if (expirer)
    239         expirer->SetMainServer(this);
     239    AutoExpire::Update(true);
    240240}
    241241
    242242MainServer::~MainServer()