Skip to content

Commit cb33e2e

Browse files
guozhao-coderguozhao
andauthored
book: process exits in case of port conflict (#8)
Co-authored-by: guozhao <[email protected]>
1 parent 0b01232 commit cb33e2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/boot/boot.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ func Run() {
4747
logrus.Infof("ssaplayground: welcome to ssaplayground service... http://%s/gossa", config.Get().Addr)
4848
err := server.ListenAndServe()
4949
if err != http.ErrServerClosed {
50+
terminated <- true
5051
logrus.Info("ssaplayground: launch with error: ", err)
5152
}
5253

0 commit comments

Comments
 (0)