Skip to content

Commit 430d66b

Browse files
committed
Clear values when stopping
1 parent e557ece commit 430d66b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/components/ObsSwitcher.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,12 @@ function (_EventEmitter) {
303303
switch (_context3.prev = _context3.next) {
304304
case 0:
305305
this.obsStreaming = false;
306-
_context3.next = 3;
306+
this.nginxVideoMeta = null;
307+
this.bitrate = null;
308+
_context3.next = 5;
307309
return this.canSwitch();
308310

309-
case 3:
311+
case 5:
310312
_ref3 = _context3.sent;
311313
canSwitch = _ref3.canSwitch;
312314

@@ -316,7 +318,7 @@ function (_EventEmitter) {
316318
});
317319
}
318320

319-
case 6:
321+
case 8:
320322
case "end":
321323
return _context3.stop();
322324
}

src/components/ObsSwitcher.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ class ObsSwitcher extends EventEmitter {
177177

178178
async streamStopped() {
179179
this.obsStreaming = false;
180+
this.nginxVideoMeta = null;
181+
this.bitrate = null;
180182

181183
const { canSwitch } = await this.canSwitch();
182184

0 commit comments

Comments
 (0)