diff options
| author | acid-burn <acid-burn@opendreambox.org> | 2009-12-23 07:15:51 +0100 |
|---|---|---|
| committer | acid-burn <acid-burn@opendreambox.org> | 2009-12-23 07:15:51 +0100 |
| commit | 786a5a906d13ec5832fbecf5c4fa5421f2cac790 (patch) | |
| tree | dad699d93fac8d8d0476f522a8d0d6b2035e2504 /lib/python/Components | |
| parent | 44985357544c5a3bf67a758c8612102ac59a74cc (diff) | |
| parent | 075c89b1e624ce80fa02aa789a319d84cbe928b4 (diff) | |
| download | enigma2-786a5a906d13ec5832fbecf5c4fa5421f2cac790.tar.gz enigma2-786a5a906d13ec5832fbecf5c4fa5421f2cac790.zip | |
Merge branch 'bug_203_fix_wrong_networkstate'
Conflicts:
lib/python/Plugins/SystemPlugins/WirelessLan/plugin.py
lib/python/Screens/NetworkSetup.py
Diffstat (limited to 'lib/python/Components')
| -rwxr-xr-x | lib/python/Components/Network.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py index f65d6090..bd10d9c3 100755 --- a/lib/python/Components/Network.py +++ b/lib/python/Components/Network.py @@ -24,6 +24,7 @@ class Network: self.activateConsole = Console() self.resetNetworkConsole = Console() self.DnsConsole = Console() + self.PingConsole = Console() self.config_ready = None self.getInterfaces() @@ -475,10 +476,17 @@ class Network: def getLinkStateFinished(self, result, retval,extra_args): (callback) = extra_args + if self.LinkConsole is not None: if len(self.LinkConsole.appContainers) == 0: callback(result) + def stopPingConsole(self): + if self.PingConsole is not None: + if len(self.PingConsole.appContainers): + for name in self.PingConsole.appContainers.keys(): + self.PingConsole.kill(name) + def stopLinkStateConsole(self): if self.LinkConsole is not None: if len(self.LinkConsole.appContainers): |
