Skip to content

Commit f154e95

Browse files
committed
todo for aiohttp is resolved, can use shorter keepalive
1 parent a378c49 commit f154e95

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

tc2_launcher/gui.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,10 @@ def fallback_keep_alive():
255255
global last_eval_time
256256
watch_start_time = timer()
257257
while True:
258-
sleep(60 if last_eval_time is None else 2)
258+
sleep(10 if last_eval_time is None else 2)
259259
if sys.is_finalizing():
260260
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
261+
keepalive_time = 10
268262
if last_eval_time is not None:
269263
watch_start_time = last_eval_time
270264
keepalive_time = 5

0 commit comments

Comments
 (0)