mirror of
https://github.com/craigerl/aprsd.git
synced 2025-08-18 12:42: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''
|
||||
|
||||
while True and not self.thread_stop:
|
||||
while not self.thread_stop:
|
||||
try:
|
||||
for line in self._socket_readlines(blocking):
|
||||
if line[0:1] != b'#':
|
||||
@ -285,7 +285,8 @@ class APRSLibClient(aprslib.IS):
|
||||
except StopIteration:
|
||||
break
|
||||
except IOError:
|
||||
self.logger.error('IOError')
|
||||
if not self.thread_stop:
|
||||
self.logger.error('IOError')
|
||||
break
|
||||
except Exception:
|
||||
self.logger.error('APRS Packet: %s', line)
|
||||
|
Loading…
x
Reference in New Issue
Block a user