Changeset 7662 in ntrip


Ignore:
Timestamp:
Jan 7, 2016, 4:36:49 PM (9 years ago)
Author:
stuerze
Message:

minor additions to interrupt the connection to the caster correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncnetqueryv2.cpp

    r7660 r7662  
    5151bncNetQueryV2::~bncNetQueryV2() {
    5252  delete _eventLoop;
    53   delete _reply;
     53  if (_reply) {
     54    _reply->abort();
     55    delete _reply;
     56  }
    5457  delete _manager;
    5558}
     
    6063  if (_reply) {
    6164    _reply->abort();
     65    delete _reply;
     66    _reply = 0;
    6267  }
    6368  _eventLoop->quit();
     
    153158  request.setRawHeader("Connection"   , "close");
    154159
    155   delete _reply;
     160  if (_reply) {
     161    delete _reply;
     162    _reply = 0;
     163  }
    156164  _reply = _manager->get(request);
    157165
Note: See TracChangeset for help on using the changeset viewer.