Fixes RefreshGroup strong reference cycle

This commit is contained in:
Riley Testut
2020-05-14 10:31:00 -07:00
parent f5b084f93d
commit c0b9e798c9

View File

@@ -46,8 +46,8 @@ class RefreshGroup: NSObject
if self.operations.isEmpty && !operations.isEmpty
{
self.dispatchGroup.notify(queue: .global()) {
self.finish()
self.dispatchGroup.notify(queue: .global()) { [weak self] in
self?.finish()
}
}