summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/wifi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 8fe2be3b..a1da4194 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -3905,7 +3905,9 @@ static gboolean autosignalpoll_timeout(gpointer data)
if (ret < 0) {
DBG("Fail to get max speed !!");
wifi->automaxspeed_timeout = 0;
- connman_network_unref(wifi->network);
+
+ if (wifi->network)
+ connman_network_unref(wifi->network);
return FALSE;
}