fix lbryum shut down

This commit is contained in:
Jack Robison 2017-04-30 15:31:28 -04:00
parent dcdd4d8fd6
commit a9868a4f17

View file

@ -938,8 +938,12 @@ class LBRYumWallet(Wallet):
self.network = None self.network = None
d.callback(True) d.callback(True)
if self.wallet:
self.wallet.stop_threads()
log.info("Stopped wallet")
if self.network: if self.network:
self.network.stop() self.network.stop()
log.info("Stopped connection to lbryum server")
stop_check = task.LoopingCall(check_stopped) stop_check = task.LoopingCall(check_stopped)
stop_check.start(.1) stop_check.start(.1)