diff options
| author | acid-burn <acid-burn@opendreambox.org> | 2009-12-17 12:09:54 +0100 |
|---|---|---|
| committer | acid-burn <acid-burn@opendreambox.org> | 2009-12-17 12:09:54 +0100 |
| commit | 075c89b1e624ce80fa02aa789a319d84cbe928b4 (patch) | |
| tree | e643734e5534246c5072a8e2ca02d59325ce94d2 /lib/python/Components/Network.py | |
| parent | bfd5fa5d07a4c26aeb028a68818a9e2300c9dc6f (diff) | |
| download | enigma2-075c89b1e624ce80fa02aa789a319d84cbe928b4.tar.gz enigma2-075c89b1e624ce80fa02aa789a319d84cbe928b4.zip | |
Components/Network.py, Screens/NetworkSetup.py: - fix possible crash when closing network config
Diffstat (limited to 'lib/python/Components/Network.py')
| -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): |
