diff options
author | terminaldweller <thabogre@gmail.com> | 2023-02-22 07:42:38 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2023-02-22 07:42:38 +0000 |
commit | 9a0c3e7f4b478e3ea3963615be078609ce324856 (patch) | |
tree | f40d405768dfbc7c89b8e8d74932a5ab05a9ddd9 | |
parent | added the t keybinding to the readme (diff) | |
download | tunneltop-9a0c3e7f4b478e3ea3963615be078609ce324856.tar.gz tunneltop-9a0c3e7f4b478e3ea3963615be078609ce324856.zip |
fixed a bug with the t keybinding where pressing it would lead to crash
-rw-r--r-- | pyproject.toml | 2 | ||||
-rwxr-xr-x | 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 <devi@terminaldweller.com>"] 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"): |