We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a378c49 commit f154e95Copy full SHA for f154e95
1 file changed
tc2_launcher/gui.py
@@ -255,16 +255,10 @@ def fallback_keep_alive():
255
global last_eval_time
256
watch_start_time = timer()
257
while True:
258
- sleep(60 if last_eval_time is None else 2)
+ sleep(10 if last_eval_time is None else 2)
259
if sys.is_finalizing():
260
return
261
- # todo: blocking async is causing issues.
262
- # archive is downloaded with requests library, it should be aiohttp.
263
- # we need to create an async API and have the CLI, fallback use it,
264
- # and have an entrypoint for pywebview.
265
- # for now though, i will keep the keepalive at 60 seconds to prevent
266
- # the process from exiting.
267
- keepalive_time = 60
+ keepalive_time = 10
268
if last_eval_time is not None:
269
watch_start_time = last_eval_time
270
keepalive_time = 5
0 commit comments