From 8bd6e48a50110601902530c5fd45bb5d64c03509 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 2 May 2008 14:14:31 +0000 Subject: do not try to use mandi if not available --- lib/network/monitor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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`; -- cgit v1.2.1