Skip to content

Commit

Permalink
fix: stop without throwing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Sep 30, 2024
1 parent f107da5 commit 4cb48bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/tasks/src/stop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ const localnetStop = async (args: any) => {
try {
process.kill(Number(pid));
console.log(ansis.green(`Successfully stopped localnet (PID: ${pid})`));
fs.unlinkSync(LOCALNET_PID_FILE);
console.log(ansis.green(`PID file ${LOCALNET_PID_FILE} removed.`));
} catch (err) {
console.error(ansis.red(`Failed to stop localnet: ${err}`));
}
Expand Down

0 comments on commit 4cb48bd

Please sign in to comment.