Fix waitForBonding position on HRS profile

This commit is contained in:
Sylwester Zielinski
2023-05-03 16:02:44 +02:00
parent 1c45bf09d1
commit 736c753c5e

View File

@@ -97,6 +97,8 @@ internal class HRSService : NotificationService() {
client = device.connect(this@HRSService, logger = logger)
client.waitForBonding()
repository.loggerEvent
.onEach { logger.launch() }
.launchIn(lifecycleScope)
@@ -107,8 +109,6 @@ internal class HRSService : NotificationService() {
.onEach { stopIfDisconnected(it) }
.launchIn(lifecycleScope)
client.waitForBonding()
if (!client.isConnected) {
return@launch
}