Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.4, 5.10.1
-
Windows
-
9ae28ac68af20b4d8b305fa78a478833cc833642
Description
qremoteobjectreplica.cpp, line 160:
Q_ASSERT(m_state < QRemoteObjectReplica::Valid);
When in debug mode, this assert stops a Replica from reconnecting to the Source, as the Replica's state is 'QRemoteObjectReplica::Suspect' after the connection to the Source is lost. 'Suspect = 3' > 'Valid = 2'
Steps to reproduce:
- Run the 'registryconnectedserver' and 'registryconnectedclient' apps found in 'Qt\<version>\Src\qtremoteobjects\examples\remoteobjects\simpleswitch\registryconnectedserver' in debug mode
- Close the server app
- Restart the server app
EXPECTED: the client is able to reconnect and the Replica keeps working
ACTUAL: the client is not able to reconnect as the Replica asserts