mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-01-01 06:10:01 +01:00
expect a broken pipe
This commit is contained in:
parent
0b64b4ac97
commit
1e57fb4609
|
|
@ -37,6 +37,8 @@ class Module(BaseModule, metaclass=ABCMeta):
|
|||
data = read()
|
||||
except ValueError:
|
||||
pass
|
||||
except BrokenPipeError:
|
||||
break
|
||||
if data is None or isinstance(data, bytes) and len(data) == 0:
|
||||
break
|
||||
write(data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue