mirror of
https://github.com/craigerl/aprsd.git
synced 2025-08-19 13:12:26 -04:00
Don't log an IOError on shutdown
This updates the consumer loop to only log an IOError if we are not in the process of shutting down.
This commit is contained in:
parent
b201117e96
commit
d41064ba05
@ -242,7 +242,7 @@ class APRSLibClient(aprslib.IS):
|
|||||||
|
|
||||||
line = b''
|
line = b''
|
||||||
|
|
||||||
while True and not self.thread_stop:
|
while not self.thread_stop:
|
||||||
try:
|
try:
|
||||||
for line in self._socket_readlines(blocking):
|
for line in self._socket_readlines(blocking):
|
||||||
if line[0:1] != b'#':
|
if line[0:1] != b'#':
|
||||||
@ -285,7 +285,8 @@ class APRSLibClient(aprslib.IS):
|
|||||||
except StopIteration:
|
except StopIteration:
|
||||||
break
|
break
|
||||||
except IOError:
|
except IOError:
|
||||||
self.logger.error('IOError')
|
if not self.thread_stop:
|
||||||
|
self.logger.error('IOError')
|
||||||
break
|
break
|
||||||
except Exception:
|
except Exception:
|
||||||
self.logger.error('APRS Packet: %s', line)
|
self.logger.error('APRS Packet: %s', line)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user