Peers logic error fix, dummy pipe for sensor
This commit is contained in:
parent
160f731281
commit
1980d1c06d
1 changed files with 12 additions and 11 deletions
|
@ -109,8 +109,8 @@ class Peers(Route):
|
||||||
if "channel" in data:
|
if "channel" in data:
|
||||||
check_type = True
|
check_type = True
|
||||||
# We can use the in keyword this way
|
# We can use the in keyword this way
|
||||||
if type(data["channel"]) is int:
|
if type(data["channel"]) is int:
|
||||||
data["channel"] = (data["channel"], )
|
data["channel"] = (data["channel"], )
|
||||||
peers = handler.peers
|
peers = handler.peers
|
||||||
for peer_id in peers:
|
for peer_id in peers:
|
||||||
# Only check for type inclusion if check_type is True
|
# Only check for type inclusion if check_type is True
|
||||||
|
@ -186,7 +186,8 @@ server.set_app(WebSocketWSGIApplication(handler_cls=Handler,
|
||||||
"subscribe" : Subscribe(),
|
"subscribe" : Subscribe(),
|
||||||
"hostname" : DummyPipe(),
|
"hostname" : DummyPipe(),
|
||||||
"processes" : DummyPipe(),
|
"processes" : DummyPipe(),
|
||||||
"peers" : Peers()}}))
|
"peers" : Peers(),
|
||||||
|
"sensor" : DummyPipe()}}))
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Reference in a new issue