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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user