1
0

more robust connection procedure: let the user start with proxy

This commit is contained in:
thomasv
2012-10-22 17:18:07 +02:00
parent af0d8d664b
commit c735fcd228
2 changed files with 22 additions and 12 deletions

View File

@@ -29,6 +29,7 @@ import random
import aes
import ecdsa
import Queue
import time
from ecdsa.util import string_to_number, number_to_string
from util import print_error, user_dir, format_satoshis
@@ -858,7 +859,12 @@ class WalletSynchronizer(threading.Thread):
def run(self):
# request banner, because 'connected' event happends before this thread is started
# wait until we are connected, in case the user is not connected
while not self.interface.is_connected:
time.sleep(1)
# request banner, because 'connected' event happens before this thread is started
self.interface.send([('server.banner',[])],'synchronizer')
# subscriptions