QWebSocket: fix auth state not being cleared


When reusing a QWebSocket object we could end up, depending
on the state, retaining some data that would then be used
in the next connection.

Fixes: QTBUG-150542
Pick-to: 6.12 6.12.0 6.11 6.11.3 6.8
Change-Id: I1fd557044a85ca2bae6db37800c68198dbb5b82e
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
commit98249844fa4297b206620a98d369147d79910756
parentfe08f10ffc359f4bf4e6e0a6db2f02ea26cf1f12
authorMårten Nordheim <marten.nordheim@qt.io>
committerMårten Nordheim <marten.nordheim@qt.io>
commit timeThu, 24 Sep 2026 14:51:08 +0000