Explorar o código

fix server.start return nil points (#379)

Co-authored-by: luyongjie <luyongjie@37.com>
卢永杰 %!s(int64=4) %!d(string=hai) anos
pai
achega
1f1dcd16e6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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) {