From 008b2ab09efb98251fe55d721c75be64b1fdd8cc Mon Sep 17 00:00:00 2001 From: Hemna Date: Fri, 1 Sep 2023 15:13:50 -0400 Subject: [PATCH] recreate client during reset() This patch re-creates the client object during a client.reset() call. --- aprsd/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aprsd/client.py b/aprsd/client.py index 1af14b2..7bc4f02 100644 --- a/aprsd/client.py +++ b/aprsd/client.py @@ -67,6 +67,9 @@ class Client(metaclass=trace.TraceWrapperMetaclass): else: LOG.warning("Client not initialized, nothing to reset.") + # Recreate the client + LOG.info(f"Creating new client {self.client}") + @abc.abstractmethod def setup_connection(self): pass