QAbstractSocket: Always clear old QHostAddress list on a new connect.

Change-Id: Iee1416e7803836e5f1a37508739bcbcb2cdb421c
Reviewed-on: http://codereview.qt.nokia.com/1174
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
This commit is contained in:
Martin Petersson 2011-07-05 16:32:01 +02:00 committed by Qt by Nokia
parent 1631be8176
commit 83736a8d06

View File

@ -893,6 +893,7 @@ void QAbstractSocketPrivate::startConnectingByName(const QString &host)
void QAbstractSocketPrivate::_q_startConnecting(const QHostInfo &hostInfo)
{
Q_Q(QAbstractSocket);
addresses.clear();
if (state != QAbstractSocket::HostLookupState)
return;