Skip to content

Commit f3d4385

Browse files
naming
1 parent ec05ef8 commit f3d4385

File tree

1 file changed

+2
-2
lines changed
  • inference/core/interfaces/webrtc_worker

1 file changed

+2
-2
lines changed

inference/core/interfaces/webrtc_worker/webrtc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ async def init_rtc_peer_connection_with_loop(
466466
webrtc_request: WebRTCWorkerRequest,
467467
send_answer: Callable[[WebRTCWorkerResult], None],
468468
asyncio_loop: Optional[asyncio.AbstractEventLoop] = None,
469-
shutdown_contingency: int = WEBRTC_MODAL_SHUTDOWN_RESERVE,
469+
shutdown_reserve: int = WEBRTC_MODAL_SHUTDOWN_RESERVE,
470470
) -> RTCPeerConnectionWithLoop:
471471
termination_date = None
472472
terminate_event = asyncio.Event()
@@ -478,7 +478,7 @@ async def init_rtc_peer_connection_with_loop(
478478
if datetime_now is None:
479479
datetime_now = datetime.datetime.now()
480480
termination_date = datetime_now + datetime.timedelta(
481-
seconds=time_limit_seconds - shutdown_contingency
481+
seconds=time_limit_seconds - shutdown_reserve
482482
)
483483
logger.info(
484484
"Setting termination date to %s (%s seconds from %s)",

0 commit comments

Comments
 (0)