wasm: do not close QIODevice on error
Closing it early means the user may get this message when reading data without checking for error: 'QIODevice::read (QNetworkReplyWasmImpl): device not open' Change-Id: I377fc3da68e9d9f14f8504ace5addbb4f8e3c539 Fixes: QTBUG-85176 Pick-to: 5.15 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
0707b85cda
commit
4ed01f5d23
@ -121,7 +121,6 @@ void QNetworkReplyWasmImpl::abort()
|
||||
|
||||
d->state = QNetworkReplyPrivate::Aborted;
|
||||
d->doAbort();
|
||||
d->m_fetch = 0;
|
||||
close();
|
||||
}
|
||||
|
||||
@ -282,8 +281,6 @@ void QNetworkReplyWasmImplPrivate::emitReplyError(QNetworkReply::NetworkError er
|
||||
|
||||
q->setError(errorCode, errorString);
|
||||
emit q->errorOccurred(errorCode);
|
||||
m_fetch = 0;
|
||||
q->close();
|
||||
}
|
||||
|
||||
void QNetworkReplyWasmImplPrivate::emitDataReadProgress(qint64 bytesReceived, qint64 bytesTotal)
|
||||
|
Loading…
x
Reference in New Issue
Block a user