mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Check hangup error in voip (#146423)
Check hangup error Prevent an error where the call end future may have already been set when a hangup is detected.
This commit is contained in:
parent
3b81480091
commit
2d60115ec6
@ -336,7 +336,8 @@ class VoipAssistSatellite(VoIPEntity, AssistSatelliteEntity, RtpDatagramProtocol
|
|||||||
if self._run_pipeline_task is not None:
|
if self._run_pipeline_task is not None:
|
||||||
_LOGGER.debug("Cancelling running pipeline")
|
_LOGGER.debug("Cancelling running pipeline")
|
||||||
self._run_pipeline_task.cancel()
|
self._run_pipeline_task.cancel()
|
||||||
self._call_end_future.set_result(None)
|
if not self._call_end_future.done():
|
||||||
|
self._call_end_future.set_result(None)
|
||||||
self.disconnect()
|
self.disconnect()
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user