Listen on all channels!
This commit is contained in:
parent
3ae889d5a2
commit
e25389db0d
1 changed files with 4 additions and 3 deletions
|
@ -18,9 +18,10 @@ def to_nodered(provider, data):
|
|||
ws.close()
|
||||
|
||||
def wait_for_pkg(conns):
|
||||
if select.select(conns,[],[]) == ([],[],[]):
|
||||
print("Select error")
|
||||
else:
|
||||
|
||||
readable, writable, exceptional = select.select(conns,[],[])
|
||||
|
||||
for conn in readable:
|
||||
conn.poll()
|
||||
while conn.notifies:
|
||||
notify = conn.notifies.pop(0)
|
||||
|
|
Loading…
Reference in a new issue