Skip to content

Commit 9729973

Browse files
committed
fix: missing job on for readCardId for Telpo
1 parent 10bb0bb commit 9729973

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/src/main/java/com/pos/Telpo.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ class Telpo(private val reactContext: ReactApplicationContext) : CardManager(),
122122
}
123123
}
124124

125+
override suspend fun readCardId(promise: Promise) {
126+
job = GlobalScope.launch(start = CoroutineStart.LAZY) {
127+
super.readCardId(promise)
128+
}
129+
}
130+
125131
override fun connectCard() {
126132
if (cardIsConnected) return
127133
cardIsConnected = try {

0 commit comments

Comments
 (0)