QMetaObjectPublisher: Never send stale queued messages


If the client is connected with an in-process transport, it can happen
that a transmitted message triggers a subsequent property change.
In that case, we need to ensure that the queued messages have already
been cleared; otherwise the recursive call will send everythig again.

Case in point: The qmlwebchannel tests fail if we don't clear the
queued messages before sending them out.

For that same reason set the client to "busy" (aka non-idle) just right
before sending out the messages; otherwise a potential "Idle" type
message will not correctly restore the Idle state.

Pick-to: 6.2
Pick-to: 6.3
Change-Id: Idc4afdd5cf4b4e03b8de8953a03d28442d74a3ab
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
commitb4bf8f5e043120341cd9caa59f25a2beecd94ad0
parente2d65cdcad5c57b6426cacee5926fa9d7937c571
authorArno Rehn <a.rehn@menlosystems.com>
committerArno Rehn <a.rehn@menlosystems.com>
commit timeTue, 14 Dec 2021 22:14:34 +0100