Fix getStateChanges call always returning empty flow (#2073)

This commit is contained in:
Joris Pelgröm 2021-12-24 18:21:32 +01:00 committed by GitHub
parent 38534bc456
commit 04e269ce52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,10 +174,12 @@ class WebSocketRepositoryImpl @Inject constructor(
}.shareIn(ioScope, SharingStarted.WhileSubscribed())
}
}
return stateChangedFlow!!
} catch (e: Exception) {
Log.e(TAG, "Unable to get flow of entities", e)
return emptyFlow()
}
return emptyFlow()
}
/**