mirror of
https://github.com/craigerl/aprsd.git
synced 2025-06-16 05:12:25 -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
|
return packet
|
||||||
|
|
||||||
def setup_connection(self):
|
def setup_connection(self):
|
||||||
self._client = kiss.KISS3Client()
|
try:
|
||||||
self.connected = True
|
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
|
return self._client
|
||||||
|
|
||||||
def consumer(self, callback, blocking=False, immortal=False, raw=False):
|
def consumer(self, callback, blocking=False, immortal=False, raw=False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user