aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2023-02-22 07:42:38 +0000
committerterminaldweller <thabogre@gmail.com>2023-02-22 07:42:38 +0000
commit9a0c3e7f4b478e3ea3963615be078609ce324856 (patch)
treef40d405768dfbc7c89b8e8d74932a5ab05a9ddd9
parentadded the t keybinding to the readme (diff)
downloadtunneltop-9a0c3e7f4b478e3ea3963615be078609ce324856.tar.gz
tunneltop-9a0c3e7f4b478e3ea3963615be078609ce324856.zip
fixed a bug with the t keybinding where pressing it would lead to crash
-rw-r--r--pyproject.toml2
-rwxr-xr-xtunneltop/tunneltop.py4
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"):