Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.8.0
-
None
Description
I set IODevice (bluetooth socket) for QNmeaPositionInfoSource and start updates. Then I need to close socket. Before that I emit signal for another thread that contains QNmeaPositionInfoSource object, it calls stopUpdates and deleteLater QNmeaPositionInfoSource object.
Sometimes (if I understand correctly) socket can get closed before QNmeaPositionInfoSource updates stops, and it hangs up writing numerous "QIODevice::read (QBluetoothSocket): device not open" to console.
Direct deleting QNmeaPositionInfoSource object instead of deleteLater solve the issue, but as I know it is not safe.
Also I wonder why sourceDataClosed() function in qnmeapositioninfosource.cpp did not stop updates?