run vban.logout() to cleanup threads/sockets.

bump vban-cmd dependency ver.

patch bump
This commit is contained in:
onyx-and-iris 2022-09-24 08:04:59 +01:00
parent 6de79977cc
commit d4b2b90fc0
3 changed files with 9 additions and 8 deletions

4
poetry.lock generated
View File

@ -84,7 +84,7 @@ python-versions = ">=3.7"
[[package]] [[package]]
name = "vban-cmd" name = "vban-cmd"
version = "1.4.3" version = "1.4.4"
description = "Python interface for the VBAN RT Packet Service (Sendtext)" description = "Python interface for the VBAN RT Packet Service (Sendtext)"
category = "main" category = "main"
optional = false optional = false
@ -107,7 +107,7 @@ tomli = {version = ">=2.0.1,<3.0.0", markers = "python_version < \"3.11\""}
[metadata] [metadata]
lock-version = "1.1" lock-version = "1.1"
python-versions = "^3.10" python-versions = "^3.10"
content-hash = "df755b86361b6c58978bcdc7875d8d8e5f4d554d13b189823347d64994ba1507" content-hash = "1013fe45920526153e77b65bd21f9cdaac34841917159ea85565bec747c1e455"
[metadata.files] [metadata.files]
black = [] black = []

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "voicemeeter-compact" name = "voicemeeter-compact"
version = "1.5.2" version = "1.5.3"
description = "A Compact Voicemeeter Remote App" description = "A Compact Voicemeeter Remote App"
authors = ["onyx-and-iris <code@onyxandiris.online>"] authors = ["onyx-and-iris <code@onyxandiris.online>"]
license = "MIT" license = "MIT"
@ -17,7 +17,7 @@ python = "^3.10"
sv-ttk = "^2.0" sv-ttk = "^2.0"
tomli = { version = "^2.0.1", python = "<3.11" } tomli = { version = "^2.0.1", python = "<3.11" }
voicemeeter-api = "^0.7.0" voicemeeter-api = "^0.7.0"
vban-cmd = "^1.4.3" vban-cmd = "^1.4.4"
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
black = {version = "^22.6.0", allow-prereleases = true} black = {version = "^22.6.0", allow-prereleases = true}

View File

@ -5,6 +5,7 @@ from tkinter import messagebox, ttk
import sv_ttk import sv_ttk
import vban_cmd import vban_cmd
from vban_cmd.error import VBANCMDError
from .data import _base_values, _configuration, get_configuration, kind_get from .data import _base_values, _configuration, get_configuration, kind_get
@ -304,10 +305,10 @@ class Menus(tk.Menu):
# login to vban interface # login to vban interface
try: try:
self.vban.login() self.vban.login()
except TimeoutError as e: except VBANCMDError as e:
messagebox.showerror( msg = (str(e), f"Please check your connection settings")
"Connection Error", f"Unable to establish connection with {opts['ip']}" messagebox.showerror("Connection Error", "\n".join(msg))
) self.vban.logout()
self.after(1, self.enable_vban_menus) self.after(1, self.enable_vban_menus)
return return
self.menu_teardown(i) self.menu_teardown(i)