Fix silly mistake: 0 is a valid file descriptor

Change-Id: I60baa01f0ef9419a73535c761c4722c5abd6f26e
Reviewed-by: Richard J. Moore <rich@kde.org>
This commit is contained in:
Thiago Macieira 2014-12-23 15:22:42 -02:00
parent e38631b5e9
commit 23ba824b7d

View File

@ -116,7 +116,7 @@ void QHttpSocketEngine::setProxy(const QNetworkProxy &proxy)
qintptr QHttpSocketEngine::socketDescriptor() const
{
Q_D(const QHttpSocketEngine);
return d->socket ? d->socket->socketDescriptor() : 0;
return d->socket ? d->socket->socketDescriptor() : -1;
}
bool QHttpSocketEngine::isValid() const