1
0

close interfaces on shutdown

This commit is contained in:
ThomasV
2014-07-29 12:13:21 +02:00
parent e702b3312b
commit 58c817f81a
4 changed files with 12 additions and 8 deletions

View File

@@ -86,8 +86,9 @@ class NetworkProxy(threading.Thread):
break
self.process(response)
print_error("NetworkProxy thread terminating")
self.stop()
if self.network:
self.network.stop()
print_error("NetworkProxy: terminating")
def process(self, response):
if self.debug:
@@ -215,8 +216,6 @@ class NetworkProxy(threading.Thread):
def stop(self):
self.running = False
if self.network:
self.network.stop()
def stop_daemon(self):
return self.send([('daemon.stop',[])], None)