Skip to content

Commit

Permalink
Crawler release lane warning fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Zheng committed Dec 21, 2023
1 parent 192dc5c commit f6eeaf0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/crawler.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,11 @@ private function _touch_lane()
*/
public function Release_lane()
{
$lane_file = $this->json_local_path() . '.pid';
if (!file_exists($lane_file)) return;

self::debug("Release lane");
unlink($this->json_local_path() . '.pid');
unlink($lane_file);
}

/**
Expand Down

0 comments on commit f6eeaf0

Please sign in to comment.