From 5472d4c62ecf852cc3d96e2cc02be31151c75eb4 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Sun, 29 Dec 2024 11:14:00 -0600 Subject: [PATCH] Always set addr --- pyproject.toml | 2 +- voip_utils/voip.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 63d33d5..f68958c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "voip-utils" -version = "0.2.1" +version = "0.2.2" license = {text = "Apache-2.0"} description = "Voice over IP Utilities" readme = "README.md" diff --git a/voip_utils/voip.py b/voip_utils/voip.py index 246909c..64ab7a2 100644 --- a/voip_utils/voip.py +++ b/voip_utils/voip.py @@ -175,8 +175,7 @@ def datagram_received(self, data, addr): if not self._is_connected: return - if self.addr is None: - self.addr = addr + self.addr = addr try: # STT expects 16Khz mono with 16-bit samples