소스 검색

fix server.start return nil points (#379)

Co-authored-by: luyongjie <luyongjie@37.com>
卢永杰 4 년 전
부모
커밋
1f1dcd16e6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      core/proc/shutdown+polyfill.go

+ 2 - 2
core/proc/shutdown+polyfill.go

@@ -5,11 +5,11 @@ package proc
 import "time"
 
 func AddShutdownListener(fn func()) func() {
-	return nil
+	return fn
 }
 
 func AddWrapUpListener(fn func()) func() {
-	return nil
+	return fn
 }
 
 func SetTimeoutToForceQuit(duration time.Duration) {