mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-10 00:45:39 +00:00
catch exception on closed inputs
This commit is contained in:
parent
031c937c0c
commit
ef2ec1e1c5
1 changed files with 5 additions and 1 deletions
|
|
@ -54,7 +54,11 @@ class output(object):
|
|||
def copy():
|
||||
run = True
|
||||
while run:
|
||||
data = read()
|
||||
data = None
|
||||
try:
|
||||
data = read()
|
||||
except ValueError:
|
||||
pass
|
||||
if data is None or (isinstance(data, bytes) and len(data) == 0):
|
||||
run = False
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue