From 1f1dcd16e6005ae96282ec7afc4ebf777e5625bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E6=B0=B8=E6=9D=B0?= Date: Wed, 13 Jan 2021 18:40:39 +0800 Subject: [PATCH] fix server.start return nil points (#379) Co-authored-by: luyongjie --- core/proc/shutdown+polyfill.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/proc/shutdown+polyfill.go b/core/proc/shutdown+polyfill.go index f853dd5d..3fb1ddb5 100644 --- a/core/proc/shutdown+polyfill.go +++ b/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) {