正在退出时不上报错误

This commit is contained in:
刘祥超
2022-03-14 12:23:28 +08:00
parent d0b86af4ef
commit 31b16ad67a

View File

@@ -247,6 +247,12 @@ Loop:
if err != nil {
return err
}
// 正在退出时不上报错误
if teaconst.IsQuiting {
return nil
}
_, err = rpcClient.NodeLogRPC().CreateNodeLogs(rpcClient.Context(), &pb.CreateNodeLogsRequest{NodeLogs: logList})
return err
}