Explorar o código

don't try removing a timer twice (fixes #3681)

Falko Schindler hai 8 meses
pai
achega
b576880814
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nicegui/elements/timer.py

+ 1 - 1
nicegui/elements/timer.py

@@ -125,6 +125,6 @@ class Timer(Element, component='timer.js'):
 
     def _cleanup(self) -> None:
         self.callback = None
-        if not self.client._deleted:  # pylint: disable=protected-access
+        if not self._deleted:
             assert self.parent_slot
             self.parent_slot.parent.remove(self)