From 99b757488c077cee7d0ab89eeec181a7ee6290eb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 15 Nov 2022 15:00:19 +0100 Subject: Fix server lint --- shared/server-commands/server/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared/server-commands/server') diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index c062e6986..f2ca51431 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts @@ -259,7 +259,7 @@ export class PeerTubeServer { const onPeerTubeExit = () => rej(new Error('Process exited:\n' + aggregatedLogs)) const onParentExit = () => { - if (!this.app || !this.app.pid) return + if (!this.app?.pid) return try { process.kill(self.app.pid) -- cgit v1.2.3