Fix bluetooth active update coordinator not returning on failure (#79167)
We also need to return on polling exception so we do not try to update. Fixes #79166pull/79180/head
parent
40f5c317c7
commit
7b708f4b35
|
@ -117,12 +117,12 @@ class ActiveBluetoothProcessorCoordinator(
|
|||
"%s: Bluetooth error whilst polling: %s", self.address, str(exc)
|
||||
)
|
||||
self.last_poll_successful = False
|
||||
return
|
||||
return
|
||||
except Exception: # pylint: disable=broad-except
|
||||
if self.last_poll_successful:
|
||||
self.logger.exception("%s: Failure while polling", self.address)
|
||||
self.last_poll_successful = False
|
||||
return
|
||||
return
|
||||
finally:
|
||||
self._last_poll = time.monotonic()
|
||||
|
||||
|
|
Loading…
Reference in New Issue