1
0
mirror of https://github.com/gryf/wicd.git synced 2026-03-14 05:35:49 +01:00

Make sure it's possible to stop a dhcp client that's in the process of getting a lease.

Have gui.py trigger connection status updates every .5 seconds if in a connecting state.
Fix typo in wicd-client.py
This commit is contained in:
Dan O'Reilly
2009-02-11 20:55:02 -05:00
parent 7ee121c15e
commit bae95355d7
6 changed files with 35 additions and 10 deletions

View File

@@ -453,7 +453,8 @@ class BaseInterface(object):
cmd = self._get_dhcp_command('connect')
#cmd = self.DHCP_CMD + " " + self.iface
if self.verbose: print cmd
pipe = misc.Run(cmd, include_stderr=True, return_pipe=True)
self.dhcp_object = misc.Run(cmd, include_stderr=True, return_obj=True)
pipe = self.dhcp_object.stdout
DHCP_CLIENT = self.DHCP_CLIENT
if DHCP_CLIENT == misc.DHCLIENT: