Skip to content

Commit

Permalink
Update Monitor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Aug 20, 2024
1 parent 8311611 commit f2d71b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion process/Monitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ public function __construct($monitorDir, $monitorExtensions, array $options = []
static::resume();
$this->paths = (array)$monitorDir;
$this->extensions = $monitorExtensions;
$this->loadedFiles = array_flip(get_included_files());
foreach (get_included_files() as $index => $file) {
$this->loadedFiles[$file] = $index;
if (strpos($file, 'webman-framework/src/support/App.php')) {
break;
}
}
if (!Worker::getAllWorkers()) {
return;
}
Expand Down

0 comments on commit f2d71b5

Please sign in to comment.