Skip to content

Commit

Permalink
fix: deno runtime controller not handling undefined child process ref…
Browse files Browse the repository at this point in the history
…erence correctly

RocketChat/Rocket.Chat#33494
  • Loading branch information
d-gubert committed Dec 6, 2024
1 parent 01ebad1 commit 8db677d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/runtime/deno/AppsEngineDenoRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class DenoRuntimeSubprocessController extends EventEmitter {

public async getStatus(): Promise<AppStatus> {
// If the process has been terminated, we can't get the status
if (this.deno.exitCode !== null) {
if (!this.deno || this.deno.exitCode !== null) {
return AppStatus.UNKNOWN;
}

Expand Down

0 comments on commit 8db677d

Please sign in to comment.