move message poller to back ground thread

pull/541/head
Ryan Zhao 3 years ago
parent 6c64d580b8
commit e8e120666b

@ -55,7 +55,9 @@ public final class Poller : NSObject {
guard let strongSelf = self, strongSelf.isPolling else { return }
Timer.scheduledTimer(withTimeInterval: Poller.retryInterval, repeats: false) { _ in
guard let strongSelf = self else { return }
strongSelf.setUpPolling()
DispatchQueue.global().async {
strongSelf.setUpPolling()
}
}
}
}

Loading…
Cancel
Save