Schannel: Don't emit error when peer performs graceful disconnection

Change-Id: Ie19a31fc61223d954badc704324adf4f5f7d361e
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
(cherry picked from commit 3ff8629a0fbdf432086a47a1047d03ad457118c6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Mårten Nordheim 2022-12-15 16:58:19 +01:00 committed by Qt Cherry-pick Bot
parent 9d4bd2c6d0
commit 0ef6a30790

View File

@ -1656,8 +1656,6 @@ void TlsCryptographSchannel::transmit()
} else if (status == SEC_I_CONTEXT_EXPIRED) {
// 'remote' has initiated a shutdown
disconnectFromHost();
setErrorAndEmit(d, QAbstractSocket::RemoteHostClosedError,
schannelErrorToString(status));
break;
} else if (status == SEC_I_RENEGOTIATE) {
// 'remote' wants to renegotiate