This commit is contained in:
Muhammad Khalid 2021-12-13 22:07:33 +05:00 committed by Mehrooz Khan
parent e75611c99c
commit 62b9202ff8

View file

@ -482,7 +482,7 @@ open class XmppService: Logger, EventHandler {
}
fileprivate func fetchEnded(for account: BareJID) {
dispatcher.async {
dispatcher.async(flags: .barrier) {
if let idx = self.fetchingFor.firstIndex(of: account) {
self.fetchingFor.remove(at: idx);
self.fetchGroup?.leave();