1
0
Эх сурвалжийг харах

fix auto-reload not working due to running timer

Rodja Trappe 3 жил өмнө
parent
commit
da7f3cd988
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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)