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) {
|
func keycardInvokation(_ reject: @escaping RCTPromiseRejectBlock, body: @escaping (CardChannel) throws -> Void) {
|
||||||
if self.cardChannel != nil {
|
if self.cardChannel != nil {
|
||||||
DispatchQueue.main.async { [unowned self] in
|
DispatchQueue.global().async { [unowned self] in
|
||||||
do {
|
do {
|
||||||
try body(self.cardChannel!)
|
try body(self.cardChannel!)
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in New Issue