Better release of memory.
This commit is contained in:
@@ -70,8 +70,11 @@ public class Sensors: NSObject
|
||||
RunLoop.current.run( until: Date( timeIntervalSinceNow: 5 ) )
|
||||
}
|
||||
|
||||
timer.invalidate()
|
||||
|
||||
let completion = self.completion
|
||||
self.completion = nil
|
||||
self.data = []
|
||||
|
||||
completion?()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user