1
0
mirror of https://github.com/gryf/wicd.git synced 2026-03-30 17:03:32 +02:00

experimental:

- Fix potential deadlock in connection thread
- Make wireless interface blank string if set to None in config.
This commit is contained in:
imdano
2008-09-19 16:28:26 +00:00
parent 890b5ee16a
commit ccbd6ad392
2 changed files with 8 additions and 6 deletions

View File

@@ -140,8 +140,8 @@ class WicdDaemon(dbus.service.Object):
def SetWirelessInterface(self, interface):
""" Sets the wireless interface the daemon will use. """
print "setting wireless interface %s" % (str(interface))
self.wifi.wireless_interface = interface
self.wired.wireless_interface = interface
self.wifi.wireless_interface = noneToBlankString(interface)
self.wired.wireless_interface = noneToBlankString(interface)
self.config.set("Settings", "wireless_interface", interface, True)
@dbus.service.method('org.wicd.daemon')