소스 검색

fix auto-reload not working due to running timer

Rodja Trappe 3 년 전
부모
커밋
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)