Explorar o código

fix auto-reload not working due to running timer

Rodja Trappe %!s(int64=3) %!d(string=hai) anos
pai
achega
da7f3cd988
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      nicegui/timer.py

+ 1 - 1
nicegui/timer.py

@@ -56,7 +56,7 @@ class Timer:
                     dt = time.time() - start
                     await asyncio.sleep(interval - dt)
                 except asyncio.CancelledError:
-                    pass
+                    return
                 except:
                     traceback.print_exc()
                     await asyncio.sleep(interval)