Skip to content

Commit

Permalink
common: socket failure cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jul 14, 2024
1 parent 555a688 commit 82993df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/webrtc/src/rtp-forwarders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ export async function startRtpForwarderProcess(console: Console, ffmpegInput: FF
killDeferred.promise.finally(() => r.destroy());
await r.handlePlayback();
rtspServer = r;
})
.catch(e => {
if (!killDeferred.finished)
killDeferred.reject(e);
});

audio.ffmpegDestination = '127.0.0.1';
Expand Down Expand Up @@ -467,6 +471,10 @@ export async function startRtpForwarderProcess(console: Console, ffmpegInput: FF
}
}
}
})
.catch(e => {
if (!killDeferred.finished)
killDeferred.reject(e);
});
}

Expand Down

0 comments on commit 82993df

Please sign in to comment.