QQmlWebSocket: Make sure to disconnect the QWebSocket before destruction


The underlying QWebSocket closes the connection on destruction and emits
a signal. The slot for this signal is called in the QQmlWebSocket which
is already partially destroyed.

Pick-to: 6.8 6.7 6.5 6.2
Change-Id: Ib01822d3f36a63b0993eab28df60c2a0cbaab826
Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
commit66477918185679b4263bdec11eb3b2df06f9e965
parent53b917cf21193c3677af3efb4a73d2b3a7caebd2
authorDominik Holland <dominik.holland@qt.io>
committerDominik Holland <dominik.holland@qt.io>
commit timeThu, 19 Sep 2024 13:03:20 +0200