Stop thread on close session

This commit is contained in:
Valere 2020-10-09 00:53:16 +02:00 committed by Benoit Marty
parent ace412f9e3
commit 6cca87da49

View file

@ -207,6 +207,7 @@ internal class DefaultSession @Inject constructor(
cryptoService.get().close()
isOpen = false
eventBus.unregister(this)
eventSenderProcessor.interrupt()
}
override fun getSyncStateLive() = getSyncThread().liveState()