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()
|
ws.close()
|
||||||
|
|
||||||
def wait_for_pkg(conns):
|
def wait_for_pkg(conns):
|
||||||
if select.select(conns,[],[]) == ([],[],[]):
|
|
||||||
print("Select error")
|
readable, writable, exceptional = select.select(conns,[],[])
|
||||||
else:
|
|
||||||
|
for conn in readable:
|
||||||
conn.poll()
|
conn.poll()
|
||||||
while conn.notifies:
|
while conn.notifies:
|
||||||
notify = conn.notifies.pop(0)
|
notify = conn.notifies.pop(0)
|
||||||
|
|
Loading…
Reference in a new issue