1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-06-15 12:52:26 -04:00

Properly report TCPKISS connection

This patch updates the KISS client to properly report the
connection as being valid or failed.
This commit is contained in:
Hemna 2024-11-25 14:37:49 -05:00
parent be6357a552
commit 3e488db3d7

View File

@ -101,8 +101,12 @@ class KISSClient(base.APRSClient):
return packet
def setup_connection(self):
self._client = kiss.KISS3Client()
self.connected = True
try:
self._client = kiss.KISS3Client()
self.connected = self.login_status["success"] = True
except Exception as ex:
self.connected = self.login_status["success"] = False
self.login_status["message"] = str(ex)
return self._client
def consumer(self, callback, blocking=False, immortal=False, raw=False):