branch | RCL_3 |
changeset 13 | c0432d11811c |
parent 7 | 3f74d0d4af4c |
--- a/src/network/socket/qabstractsocket.cpp Wed Apr 21 12:15:23 2010 +0300 +++ b/src/network/socket/qabstractsocket.cpp Wed Apr 21 20:15:53 2010 +0300 @@ -2382,6 +2382,10 @@ #if defined(QABSTRACTSOCKET_DEBUG) qDebug("QAbstractSocket::disconnectFromHost() aborting immediately"); #endif + if (d->state == HostLookupState) { + QHostInfo::abortHostLookup(d->hostLookupId); + d->hostLookupId = -1; + } } else { // Perhaps emit closing() if (d->state != ClosingState) {