Add completion handler to readdFileProviderDomain method in fileproviderdomainmanager

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-03-13 16:46:52 +01:00
parent 810fa8d1ce
commit 002a75bca1
No known key found for this signature in database
GPG Key ID: C839200C384636B0

View File

@ -253,7 +253,7 @@ class FileProviderDomainManager::Private {
}
}
void readdFileProviderDomain(NSFileProviderDomain * const domain)
void readdFileProviderDomain(NSFileProviderDomain * const domain, void (^completionHandler)())
{
dispatch_async(dispatch_get_main_queue(), ^{
// Wait for this to finish
@ -265,6 +265,8 @@ class FileProviderDomainManager::Private {
<< error.code
<< error.localizedDescription;
}
completionHandler();
}];
});