|
|
@@ -325,7 +325,7 @@ async def unbindOtherDevices(user, newDevice, queues, ast):
|
|
|
'''
|
|
|
devices = await amiDBGet('AMPUSER', '{}/device'.format(user))
|
|
|
if devices not in NONEs:
|
|
|
- for _device in sorted(set(previousDevices.split('&')), key=int):
|
|
|
+ for _device in sorted(set(devices.split('&')), key=int):
|
|
|
if _device != newDevice:
|
|
|
if ast.FMDEVSTATE == 'TRUE':
|
|
|
await amiSetVar('DEVICE_STATE(Custom:FOLLOWME{})'.format(_device), 'INVALID')
|