aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Network.py
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2009-12-23 07:15:51 +0100
committeracid-burn <acid-burn@opendreambox.org>2009-12-23 07:15:51 +0100
commit786a5a906d13ec5832fbecf5c4fa5421f2cac790 (patch)
treedad699d93fac8d8d0476f522a8d0d6b2035e2504 /lib/python/Components/Network.py
parent44985357544c5a3bf67a758c8612102ac59a74cc (diff)
parent075c89b1e624ce80fa02aa789a319d84cbe928b4 (diff)
downloadenigma2-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/Network.py')
-rwxr-xr-xlib/python/Components/Network.py8
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):