rebroadcast: fix file leak

This commit is contained in:
Koushik Dutta
2022-11-08 08:04:43 -08:00
parent 9c729eee78
commit 573b7c13e5
3 changed files with 4 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.9.44",
"version": "0.9.45",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/prebuffer-mixin",
"version": "0.9.44",
"version": "0.9.45",
"license": "Apache-2.0",
"dependencies": {
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.9.44",
"version": "0.9.45",
"description": "Video Stream Rebroadcast, Prebuffer, and Management Plugin for Scrypted.",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -22,7 +22,7 @@ export class FileRtspServer extends RtspServer {
cleanup() {
const ws = this.writeStream;
if (ws)
if (!ws)
return;
this.writeStream = undefined;
ws?.end(() => ws?.destroy());