Above is my code, and I found the loop never quit after the
QModbusRtuSerialMaster was closed via disconnectDevice.
I viewed the qtserialbus source code, in the file "qmodbusrtuserialmaster_p.h", the object "m_current" was unhandled when the serialport was aboutToClose. I think this is exactly the reason why the QModbusReply never finished, am I correct?
|For Gerrit Dashboard: QTBUG-68543|
|243001,6||Ensure QModbusReply::finished() is emitted after disconnect from serial||5.12||qt/qtserialbus||Status: MERGED||+2||0|