uspot: fix an exception in the idle timeout handler

Fixes: WIFI-12282
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-02-22 09:41:48 +01:00
parent 977d16557a
commit 2a8858a3a2

View File

@@ -64,7 +64,7 @@ function radius_stop(mac, payload, remove) {
if (!radius_available(mac))
return;
debug(mac, 'stopping accounting');
ubus.call('spotfilter', client_remove ? 'client_remove' : 'client_set', payload);
ubus.call('spotfilter', remove ? 'client_remove' : 'client_set', payload);
system('conntrack -D -s ' + clients[mac].ip4addr + ' -m 2');
if (clients[mac].accounting)
clients[mac].timeout.cancel();