mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +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))
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user