Skip to content

Commit b8fcf84

Browse files
committed
fix: Clear ios target when the detection stops
The IOS target isn't guaranteed to be dropped by qt if the keycard is touching the nfc sensor after stopping the nfc detection. This would make the target management broken and commands would randomly fail
1 parent 7468e5d commit b8fcf84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/channel/backends/keycard_channel_unified_qt_nfc.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ void KeycardChannelUnifiedQtNfc::stopDetection()
120120
qDebug() << "KeycardChannelUnifiedQtNfc::stopDetection()";
121121
if (m_detectionActive) {
122122
m_manager->stopTargetDetection();
123+
disconnect();
123124
m_detectionActive = false;
124125
}
125126
#endif

0 commit comments

Comments
 (0)