wireless: cancel the script check timer
authorFelix Fietkau <nbd@openwrt.org>
Sat, 28 Dec 2013 14:20:56 +0000 (15:20 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 28 Dec 2013 14:20:56 +0000 (15:20 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
wireless.c

index 6201da7cfcb78c6dbba51b88c91d6320b2f08de9..0fd209e57867a325bb7967348a050bf9033f984e 100644 (file)
@@ -180,6 +180,7 @@ wireless_device_free_state(struct wireless_device *wdev)
 {
        struct wireless_interface *vif;
 
+       uloop_timeout_cancel(&wdev->script_check);
        uloop_timeout_cancel(&wdev->timeout);
        wireless_complete_kill_request(wdev);
        free(wdev->data);