Ticket #3254: SetChannel_slowTimeout.patch

File SetChannel_slowTimeout.patch, 1.5 KB (added by jerry.tk+mythtv@…, 13 years ago)

Longer timeout for SetChannel?

  • libs/libmythtv/remoteencoder.h

     
    6868 
    6969  private:
    7070    MythSocket *openControlSocket(const QString &host, short port);
    71     void SendReceiveStringList(QStringList &strlist);
     71    void SendReceiveStringList(QStringList &strlist, bool quickTimeout = true);
    7272
    7373    int recordernum;
    7474
  • libs/libmythtv/remoteencoder.cpp

     
    4343    return recordernum;
    4444}
    4545
    46 void RemoteEncoder::SendReceiveStringList(QStringList &strlist)
     46void RemoteEncoder::SendReceiveStringList(QStringList &strlist, bool quickTimeout)
    4747{
    4848    QMutexLocker locker(&lock);
    4949    if (!controlSock)
     
    5252    backendError = false;
    5353
    5454    controlSock->writeStringList(strlist);
    55     if (!controlSock->readStringList(strlist, true))
     55    if (!controlSock->readStringList(strlist, quickTimeout))
    5656    {
    5757        VERBOSE(VB_IMPORTANT,
    5858                "RemoteEncoder::SendReceiveStringList(): No response.");
     
    379379    strlist << "SET_CHANNEL";
    380380    strlist << channel;
    381381
    382     SendReceiveStringList(strlist);
     382    SendReceiveStringList(strlist, false);
    383383
    384384    lastchannel = "";
    385385    lastinput = "";