use global thread for keycard interactions

This commit is contained in:
Andrea Franz 2020-12-08 11:20:31 +01:00
parent 0755278f1f
commit 9d1c14e1ff
1 changed files with 1 additions and 1 deletions

View File

@ -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 {