mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 01:52:51 +00:00
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:
@@ -64,7 +64,7 @@ function radius_stop(mac, payload, remove) {
|
|||||||
if (!radius_available(mac))
|
if (!radius_available(mac))
|
||||||
return;
|
return;
|
||||||
debug(mac, 'stopping accounting');
|
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');
|
system('conntrack -D -s ' + clients[mac].ip4addr + ' -m 2');
|
||||||
if (clients[mac].accounting)
|
if (clients[mac].accounting)
|
||||||
clients[mac].timeout.cancel();
|
clients[mac].timeout.cancel();
|
||||||
|
|||||||
Reference in New Issue
Block a user