Skip to content

Commit

Permalink
修复热更新报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Nov 5, 2021
1 parent 8bcb02a commit d9311a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HotUpdate/HotUpdateProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private function closeBuildRuntime(): void
$buildRuntimeHandler = $this->buildRuntimeHandler;
$buildRuntimePipes = $this->buildRuntimePipes;
$status = proc_get_status($buildRuntimeHandler);
if (false !== $status && !$status['running'])
if (false !== $status && ($status['running'] ?? false))
{
$writeContent = "n\n";
fwrite($buildRuntimePipes[0], $writeContent);
Expand Down

0 comments on commit d9311a0

Please sign in to comment.