1
0

command line: wait until daemon is connected

This commit is contained in:
ThomasV
2014-07-25 13:30:27 +02:00
parent 3e6f903da3
commit 2120b1a573
4 changed files with 12 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ class NetworkProxy(threading.Thread):
self.daemon = True
# status variables
self.status = 'disconnected'
self.status = 'connecting'
self.servers = {}
self.banner = ''
self.height = 0
@@ -181,6 +181,9 @@ class NetworkProxy(threading.Thread):
def is_connected(self):
return self.status == 'connected'
def is_connecting(self):
return self.status == 'connecting'
def is_up_to_date(self):
return self.synchronous_get([('network.is_up_to_date',[])])[0]