Quellcode durchsuchen

unconditionally invalidate timer in stopTimer()

cyberta vor 4 Jahren
Ursprung
Commit
a12dbefbbd
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  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
     }