Changeset 5230afa


Ignore:
Timestamp:
12/09/14 10:38:29 (3 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.1.1
Children:
2288b31
Parents:
23f6b576
Message:

Adjust the fallback time before disconnecting the socket/server connection. Only needs to be 1/2 second since this is only used when there are no inputs to send in the first place.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/libpcbsd/ui/SingleApplication.cpp

    r9398839 r5230afa  
    7575        if(!socket.isValid()){ exit(1); } //error - could not forward info 
    7676        socket.write( inputlist.join("::::").toLocal8Bit() ); 
    77         socket.waitForDisconnected(); 
     77        socket.waitForDisconnected(500); //max out at 1/2 second (only hits this if no inputs 
    7878  } 
    7979   
     
    8585    QLocalSocket *sock = lserver->nextPendingConnection(); 
    8686    QByteArray bytes; 
     87    //qDebug() << "New Socket Connection"; 
    8788    sock->waitForReadyRead(); 
    8889    while(sock->bytesAvailable() > 0){ //if(sock->waitForReadyRead()){ 
     
    9293    sock->disconnectFromServer(); 
    9394    QStringList inputs = QString::fromLocal8Bit(bytes).split("::::"); 
    94     //qDebug() << " - New Inputs Detected:" << inputs; 
     95    qDebug() << " - New Inputs Detected:" << inputs; 
    9596    emit InputsAvailable(inputs); 
    9697  } 
Note: See TracChangeset for help on using the changeset viewer.