瀏覽代碼

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) {