Skip to content

Commit 5229307

Browse files
committed
perf?: dont disarm exit timer
1 parent a46a885 commit 5229307

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/rovr/__main__.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,7 @@ async def print_dom(app: Application) -> None:
473473

474474
asyncio.run(print_dom(new_app()))
475475
elif args.ignore_missing_tty or sys.stdout.isatty():
476-
try:
477-
app = new_app()
478-
app.run()
479-
finally:
480-
app.cancel_force_exit_timer()
476+
new_app().run()
481477
elif args.force_tty:
482478
open_stdout = "CONOUT$" if os.name == "nt" else "/dev/tty"
483479
open_stdin = "CONIN$" if os.name == "nt" else "/dev/tty"
@@ -504,11 +500,7 @@ async def print_dom(app: Application) -> None:
504500
from textual import constants
505501

506502
constants.COLOR_SYSTEM = "truecolor"
507-
app = new_app()
508-
try:
509-
app.run()
510-
finally:
511-
app.cancel_force_exit_timer()
503+
new_app().run()
512504
finally:
513505
if restore_standard_input is not None:
514506
restore_standard_input()

0 commit comments

Comments
 (0)