This commit is contained in:
Muhammad Khalid 2021-12-13 22:07:33 +05:00 committed by Matthew Wild
parent 38965e245f
commit fff7d76e69

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();