1
0

init_headers in daemon thread, and fix #1996

This commit is contained in:
ThomasV
2016-10-24 14:57:02 +02:00
parent bfe7e9dc6e
commit 8249f5ab67
4 changed files with 15 additions and 4 deletions

View File

@@ -813,7 +813,12 @@ class Network(util.DaemonThread):
self.process_responses(interface)
def run(self):
self.blockchain.init()
import threading
t = threading.Thread(target = self.blockchain.init)
t.daemon = True
t.start()
while t.isAlive() and self.is_running():
t.join(1)
while self.is_running():
self.maintain_sockets()
self.wait_on_sockets()