Changeset 1897 in ntrip for trunk/BNS


Ignore:
Timestamp:
Oct 9, 2009, 8:26:14 PM (15 years ago)
Author:
mervart
Message:

LM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bnseph.cpp

    r1882 r1897  
    8585  _socket->connectToHost(host, port);
    8686
    87   const int timeOut = 10*1000;  // 10 seconds
     87  const int timeOut = 30*1000;  // 30 seconds
    8888  if (!_socket->waitForConnected(timeOut)) {
    8989//  emit(newMessage("bnseph::run Connect Timeout"));
     
    101101
    102102  while (true) {
    103     if (_socket == 0 || _socket->state() != QAbstractSocket::ConnectedState) {
     103    if ( _socket == 0 ||
     104         (_socket->state() != QAbstractSocket::ConnectingState &&
     105          _socket->state() != QAbstractSocket::ConnectedState) ) {
    104106      reconnect();
    105107    }
Note: See TracChangeset for help on using the changeset viewer.