修改HOOK_AFTER_STOP

This commit is contained in:
sk 2024-06-06 16:04:03 +08:00
parent aee5f99d9d
commit 604f7099ec
8 changed files with 1 additions and 12 deletions

View File

@ -42,8 +42,6 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopConsumer()
mq.StopPublisher()
return nil return nil
}) })
// module模块 // module模块

View File

@ -52,7 +52,6 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopPublisher()
return nil return nil
}) })
// module模块 // module模块

View File

@ -22,7 +22,6 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopPublisher()
return nil return nil
}) })
// module模块 // module模块

View File

@ -27,8 +27,6 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopPublisher()
model.ShutdownRPClient()
return nil return nil
}) })
// module模块 // module模块

View File

@ -27,8 +27,6 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopConsumer()
model.ShutdownRPClient()
return nil return nil
}) })
// module模块 // module模块

View File

@ -30,7 +30,6 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
model.ShutdownRPClient()
return nil return nil
}) })
// module模块 // module模块

View File

@ -1955,6 +1955,7 @@ func CSPlayerData(s *netlib.Session, packetid int, data interface{}, sid int64)
p.TotalIn = 0 p.TotalIn = 0
p.TotalOut = 0 p.TotalOut = 0
p.PlayerTax = 0 p.PlayerTax = 0
p.dirty = true
} }
} }
} }

View File

@ -48,9 +48,6 @@ func main() {
return nil return nil
}) })
core.RegisteHook(core.HOOK_AFTER_STOP, func() error { core.RegisteHook(core.HOOK_AFTER_STOP, func() error {
mq.StopPublisher()
mq.StopConsumer()
model.ShutdownRPClient()
return nil return nil
}) })
//启动定时任务 //启动定时任务