src/network/socket/qabstractsocket.cpp
changeset 23 89e065397ea6
parent 19 fcece45ef507
child 30 5dc02b23752f
equal deleted inserted replaced
22:79de32ba3296 23:89e065397ea6
  2380 
  2380 
  2381     if (d->abortCalled) {
  2381     if (d->abortCalled) {
  2382 #if defined(QABSTRACTSOCKET_DEBUG)
  2382 #if defined(QABSTRACTSOCKET_DEBUG)
  2383         qDebug("QAbstractSocket::disconnectFromHost() aborting immediately");
  2383         qDebug("QAbstractSocket::disconnectFromHost() aborting immediately");
  2384 #endif
  2384 #endif
       
  2385         if (d->state == HostLookupState) {
       
  2386             QHostInfo::abortHostLookup(d->hostLookupId);
       
  2387             d->hostLookupId = -1;
       
  2388         }
  2385     } else {
  2389     } else {
  2386         // Perhaps emit closing()
  2390         // Perhaps emit closing()
  2387         if (d->state != ClosingState) {
  2391         if (d->state != ClosingState) {
  2388             d->state = ClosingState;
  2392             d->state = ClosingState;
  2389 #if defined(QABSTRACTSOCKET_DEBUG)
  2393 #if defined(QABSTRACTSOCKET_DEBUG)