Changeset 1813 in ntrip for trunk/BNC/bncnetqueryv1.cpp


Ignore:
Timestamp:
Apr 28, 2009, 10:47:11 AM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncnetqueryv1.cpp

    r1716 r1813  
    5757////////////////////////////////////////////////////////////////////////////
    5858void bncNetQueryV1::waitForReadyRead(QByteArray& outData) {
     59
     60  if (_status == bncNetQuery::fatal) {
     61    return;
     62  }
     63
    5964  if (_socket && _socket->state() == QAbstractSocket::ConnectedState) {
    6065    while (true) {
     
    8388////////////////////////////////////////////////////////////////////////////
    8489void bncNetQueryV1::startRequest(const QUrl& url, const QByteArray& gga) {
     90
     91  if (_status == bncNetQuery::fatal) {
     92    return;
     93  }
    8594
    8695  _status = running;
     
    212221    delete _socket;
    213222    _socket = 0;
    214     _status = error;
     223    _status = fatal;
    215224    emit newMessage(_url.path().toAscii().replace(0,1,"")
    216225                    + ": Wrong caster response\n"
Note: See TracChangeset for help on using the changeset viewer.