Unknown variable; Logic error

This commit is contained in:
dadav
2019-12-09 20:12:34 +01:00
parent 1523dfc1ef
commit 9d56c97aa5
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ class Agent(Client, Automata, AsyncAdvertiser, AsyncTrainer):
ch = ap['channel']
# if we're sticking to a channel, skip anything
# which is not on that channel
if not channels and ch not in channels:
if not channels or (channels and ch not in channels):
continue
if ch not in grouped: