Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00be66b1 authored by cketti's avatar cketti
Browse files

Don't throw in AccountPushController.updatePushFolders()

When the 'backendPusher' property is null the AccountPushController (and BackendPusher) have already been stopped.
parent 5232a1a9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -82,8 +82,7 @@ internal class AccountPushController(
    private fun updatePushFolders(folderServerIds: List<String>) {
        Timber.v("AccountPushController(%s).updatePushFolders(): %s", account.uuid, folderServerIds)

        val backendPusher = this.backendPusher ?: error("BackendPusher not initialized")
        backendPusher.updateFolders(folderServerIds)
        backendPusher?.updateFolders(folderServerIds)
    }

    private fun syncFolders(folderServerId: String) {