summaryrefslogtreecommitdiffstats
path: root/lib/network/monitor.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/monitor.pm')
-rw-r--r--lib/network/monitor.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm
index 9f5e302..1754d89 100644
--- a/lib/network/monitor.pm
+++ b/lib/network/monitor.pm
@@ -23,7 +23,7 @@ sub list_wireless {
$results = $monitor->call_method('ScanResults');
$list = $monitor->call_method('ListNetworks');
$has_roaming = 1;
- };
+ } if $monitor;
#- try wpa_cli if we're root
if (!$has_roaming && !$>) {
$results = `/usr/sbin/wpa_cli scan_results 2>/dev/null`;