mirror of
https://github.com/craigerl/aprsd.git
synced 2025-06-15 04:42: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:
parent
be6357a552
commit
3e488db3d7
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user