From 9a0c3e7f4b478e3ea3963615be078609ce324856 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Wed, 22 Feb 2023 11:12:38 +0330 Subject: fixed a bug with the t keybinding where pressing it would lead to crash --- pyproject.toml | 2 +- tunneltop/tunneltop.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 170affb..10ae615 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "tunneltop" -version = "0.3.2" +version = "0.3.3" description = "A top-like tunnel manager" authors = ["terminaldweller "] license = "GPL-3.0" diff --git a/tunneltop/tunneltop.py b/tunneltop/tunneltop.py index 19e1459..7c624ba 100755 --- a/tunneltop/tunneltop.py +++ b/tunneltop/tunneltop.py @@ -506,7 +506,7 @@ class TunnelManager: self.data_cols[name]["disabled"] = "" await asyncio.sleep(0) - def run_single_test(self, task_name): + def run_single_test(self, task_name) -> None: """Set the counter to 0 so the scheduler will run the test""" if task_name in self.scheduler_table: self.scheduler_table[task_name] = 0 @@ -618,7 +618,7 @@ class TunnelManager: await self.restart_task(line_content.decode("utf-8")) elif char == ord("t"): line_content = self.stdscr.instr(sel + 2, 1) - await self.run_single_test(line_content.decode("utf-8")) + self.run_single_test(line_content.decode("utf-8")) elif char == ord("q"): await self.quit() elif char == ord("s"): -- cgit v1.2.3