From 80914a5801ee690274e84a8c5044e84de44df6b3 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Fri, 17 Apr 2020 15:16:18 +0200 Subject: [PATCH] Kill the streamer if registration fails --- src/broadcast/state.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/broadcast/state.ts b/src/broadcast/state.ts index 4f2b5d8..628037c 100644 --- a/src/broadcast/state.ts +++ b/src/broadcast/state.ts @@ -142,6 +142,9 @@ export const registerForShow = (): AppThunk => async (dispatch, getState) => { closure: 10000 }) ); + if (streamer) { + await streamer.stop(); + } } else { // let raygun handle it throw e;