Fixes RefreshGroup strong reference cycle

This commit is contained in:
Riley Testut
2020-05-14 10:31:00 -07:00
parent f5fc64be44
commit 2fc19f6741

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