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:
parent
e38631b5e9
commit
23ba824b7d
@ -116,7 +116,7 @@ void QHttpSocketEngine::setProxy(const QNetworkProxy &proxy)
|
|||||||
qintptr QHttpSocketEngine::socketDescriptor() const
|
qintptr QHttpSocketEngine::socketDescriptor() const
|
||||||
{
|
{
|
||||||
Q_D(const QHttpSocketEngine);
|
Q_D(const QHttpSocketEngine);
|
||||||
return d->socket ? d->socket->socketDescriptor() : 0;
|
return d->socket ? d->socket->socketDescriptor() : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QHttpSocketEngine::isValid() const
|
bool QHttpSocketEngine::isValid() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user