Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit738d842

Browse files
authored
Merge pull request#569 from tucksaun/refactor/improve-cleaning-up-workers-errors
refactor: improve cleaning up stale temp directories if workers fail to stop
2 parents4d89b47 +c86f25b commit738d842

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎commands/local_server_start.go‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,16 @@ var localServerStartCmd = &console.Command{
413413
case<-shutdownCh:
414414
terminal.Eprintln("")
415415
terminal.Eprintln("Shutting down! Waiting for all workers to be done.")
416-
iferr:=waitForWorkers(projectDir,pidFile);err!=nil {
417-
returnerr
418-
}
419-
terminal.Eprintln("")
416+
err:=waitForWorkers(projectDir,pidFile)
420417
// wait for the PHP Server to be done cleaning up
421418
ifp.PHPServer!=nil {
422419
<-p.PHPServer.StoppedChan
423420
}
424421
pidFile.CleanupDirectories()
422+
iferr!=nil {
423+
returnerr
424+
}
425+
terminal.Eprintln("")
425426
ui.Success("Stopped all processes successfully")
426427
}
427428
returnnil

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp