1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-23 22:52:33 +01:00

add a 1 second sleep after setting essid but before scanning

This commit is contained in:
Adam Blackburn
2010-01-14 18:02:10 -10:00
parent 5ba7234b5c
commit 4b5f299254

View File

@@ -605,6 +605,8 @@ class Wireless(Controller):
if essid is not None:
print 'Setting hidden essid' + essid
wiface.SetEssid(essid)
# sleep for a bit; scanning to fast will result in nothing
time.sleep(1)
aps = wiface.GetNetworks()
aps.sort(cmp=comp, reverse=True)