Changeset 1393 in ntrip
- Timestamp:
- Dec 29, 2008, 11:36:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetqueryv2.cpp
r1392 r1393 40 40 //////////////////////////////////////////////////////////////////////////// 41 41 void bncNetQueryV2::stop() { 42 _eventLoop->quit(); 43 this->deleteLater(); 42 if (_reply) { 43 _reply->disconnect(); 44 _reply->abort(); 45 } 46 if (_eventLoop) { 47 _eventLoop->quit(); 48 delete _eventLoop; 49 _eventLoop = 0; 50 } 44 51 } 45 52 … … 49 56 _status = error; 50 57 emit newMessage(_reply->errorString().toAscii(), true); 51 _eventLoop->quit(); 58 if (_eventLoop) { 59 _eventLoop->quit(); 60 } 52 61 } 53 62 … … 122 131 // Wait Loop 123 132 // --------- 124 _eventLoop->exec(); 133 if (_eventLoop) { 134 _eventLoop->exec(); 135 } 125 136 126 137 // Copy Data and Return … … 136 147 // --------- 137 148 if (!_reply->bytesAvailable()) { 138 _eventLoop->exec(); 149 if (_eventLoop) { 150 _eventLoop->exec(); 151 } 139 152 } 140 153
Note:
See TracChangeset
for help on using the changeset viewer.