Explorar o código

v2.1.2
修复协程调度顺序错误

jinnrry %!s(int64=2) %!d(string=hai) anos
pai
achega
cbfbebd7e1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      server/controllers/email/send.go

+ 1 - 0
server/controllers/email/send.go

@@ -181,6 +181,7 @@ func Send(ctx *dto.Context, w http.ResponseWriter, req *http.Request) {
 				hk.(hooks.EmailHook).SendAfter(ctx, e, sendErr)
 			}, hook)
 		}
+		as2.Wait()
 
 		if err != nil {
 			errMsg = err.Error()