From 556ea72abf3c0fddae3f3bd27a114098d2b50227 Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Fri, 20 Mar 2009 18:46:27 -0700 Subject: [PATCH] Move call to restart scanning thread to earlier position in connect_to_network() --- wifi-radar | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wifi-radar b/wifi-radar index f9f40d1..838808b 100755 --- a/wifi-radar +++ b/wifi-radar @@ -446,6 +446,11 @@ class ConnectionManager(): gtk.main_iteration(False) timer -= tick sleep(tick) + # Re-enable iwlist + try: + self.commQueue.put("scan") + except Queue.Full: + pass if not self.get_current_ip(): status.update_message("Could not get IP address!") if sys.modules.has_key("gtk"): @@ -463,11 +468,6 @@ class ConnectionManager(): while gtk.events_pending(): gtk.main_iteration(False) sleep(2) - # Re-enable iwlist - try: - self.commQueue.put("scan") - except Queue.Full: - pass else: ifconfig_command= "%s %s down; %s %s %s netmask %s" % ( self.confFile.get_opt('DEFAULT.ifconfig_command'), self.confFile.get_opt('DEFAULT.interface'), self.confFile.get_opt('DEFAULT.ifconfig_command'), self.confFile.get_opt('DEFAULT.interface'), self.profile['ip'], self.profile['netmask'] ) route_command = "%s add default gw %s" % ( self.confFile.get_opt('DEFAULT.route_command'), self.profile['gateway'] ) -- 2.11.4.GIT