Skip to content

Commit 36a5099

Browse files
committed
Unset the var
1 parent 05defbc commit 36a5099

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AsyncTask.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ private function hasTimedOut(): bool
311311
$tempOut = exec("ps -p $selfPID -o etimes=");
312312
// this must exist (we are still running!), otherwise it indicates the kernel is broken and we can go grab a chicken dinner instead
313313
$timeElapsed = (int) $tempOut;
314+
unset($tempOut);
314315
return $timeElapsed >= $this->timeLimit;
315316
}
316317
}

0 commit comments

Comments
 (0)