1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00

Merge fox 2011-08-09 fixing exception for cli/wicd-cli.py --wireless -c

This commit is contained in:
David Paleino
2011-08-09 17:58:33 +02:00

View File

@@ -175,6 +175,7 @@ if options.disconnect:
op_performed = True op_performed = True
if options.connect: if options.connect:
check = None
if options.wireless and options.network > -1: if options.wireless and options.network > -1:
is_valid_wireless_network_id(options.network) is_valid_wireless_network_id(options.network)
name = wireless.GetWirelessProperty(options.network, 'essid') name = wireless.GetWirelessProperty(options.network, 'essid')
@@ -194,6 +195,7 @@ if options.connect:
# update user on what the daemon is doing # update user on what the daemon is doing
last = None last = None
if check:
while check(): while check():
next = message() next = message()
if next != last: if next != last: