- Timestamp:
- Oct 9, 2009, 8:26:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnseph.cpp
r1882 r1897 85 85 _socket->connectToHost(host, port); 86 86 87 const int timeOut = 10*1000; // 10 seconds87 const int timeOut = 30*1000; // 30 seconds 88 88 if (!_socket->waitForConnected(timeOut)) { 89 89 // emit(newMessage("bnseph::run Connect Timeout")); … … 101 101 102 102 while (true) { 103 if (_socket == 0 || _socket->state() != QAbstractSocket::ConnectedState) { 103 if ( _socket == 0 || 104 (_socket->state() != QAbstractSocket::ConnectingState && 105 _socket->state() != QAbstractSocket::ConnectedState) ) { 104 106 reconnect(); 105 107 }
Note:
See TracChangeset
for help on using the changeset viewer.