Merge pull request #1212 from avereha/avereha/fix-race

fix race on pod activation
This commit is contained in:
Milos Kozak 2022-01-22 11:09:41 +01:00 committed by GitHub
commit 0de88813d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -668,11 +668,9 @@ class OmnipodDashManagerImpl @Inject constructor(
when (event) {
is PodEvent.AlreadyConnected -> {
podStateManager.bluetoothAddress = event.bluetoothAddress
}
is PodEvent.BluetoothConnected -> {
podStateManager.bluetoothAddress = event.bluetoothAddress
}
is PodEvent.Connected -> {