use global thread for keycard interactions
This commit is contained in:
parent
0755278f1f
commit
9d1c14e1ff
|
@ -188,7 +188,7 @@ class StatusKeycard: RCTEventEmitter {
|
|||
|
||||
func keycardInvokation(_ reject: @escaping RCTPromiseRejectBlock, body: @escaping (CardChannel) throws -> Void) {
|
||||
if self.cardChannel != nil {
|
||||
DispatchQueue.main.async { [unowned self] in
|
||||
DispatchQueue.global().async { [unowned self] in
|
||||
do {
|
||||
try body(self.cardChannel!)
|
||||
} catch {
|
||||
|
|
Loading…
Reference in New Issue