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:
parent
1631be8176
commit
83736a8d06
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user