diff options
author | Chocobozzz <me@florianbigard.com> | 2022-11-15 15:00:19 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-11-15 15:00:23 +0100 |
commit | 99b757488c077cee7d0ab89eeec181a7ee6290eb (patch) | |
tree | 307a3f39285f899e3ed616d92aae1bdd181178e0 /shared/server-commands | |
parent | 4638cd713dcdd007cd7f49b9a95fa62ac7823e7c (diff) | |
download | PeerTube-99b757488c077cee7d0ab89eeec181a7ee6290eb.tar.gz PeerTube-99b757488c077cee7d0ab89eeec181a7ee6290eb.tar.zst PeerTube-99b757488c077cee7d0ab89eeec181a7ee6290eb.zip |
Fix server lint
Diffstat (limited to 'shared/server-commands')
-rw-r--r-- | shared/server-commands/server/server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
259 | 259 | ||
260 | const onPeerTubeExit = () => rej(new Error('Process exited:\n' + aggregatedLogs)) | 260 | const onPeerTubeExit = () => rej(new Error('Process exited:\n' + aggregatedLogs)) |
261 | const onParentExit = () => { | 261 | const onParentExit = () => { |
262 | if (!this.app || !this.app.pid) return | 262 | if (!this.app?.pid) return |
263 | 263 | ||
264 | try { | 264 | try { |
265 | process.kill(self.app.pid) | 265 | process.kill(self.app.pid) |