Kill the streamer if registration fails

This commit is contained in:
Marks Polakovs 2020-04-17 15:16:18 +02:00
parent 43fbf36485
commit 80914a5801

View file

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