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:
Jamin 2025-06-10 09:22:53 -05:00 committed by GitHub
parent 3b81480091
commit 2d60115ec6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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