Explorar o código

unconditionally invalidate timer in stopTimer()

cyberta %!s(int64=4) %!d(string=hai) anos
pai
achega
a12dbefbbd
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 3
deltachat-ios/Chat/ChatViewController.swift

@@ -295,9 +295,7 @@ class ChatViewController: UITableViewController {
 
     private func stopTimer() {
         if let timer = timer {
-            if timer.isValid {
-                timer.invalidate()
-            }
+            timer.invalidate()
         }
         timer = nil
     }