修改HOOK_AFTER_STOP
This commit is contained in:
parent
aee5f99d9d
commit
604f7099ec
|
|
@ -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模块
|
||||||
|
|
|
||||||
|
|
@ -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模块
|
||||||
|
|
|
||||||
|
|
@ -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模块
|
||||||
|
|
|
||||||
|
|
@ -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模块
|
||||||
|
|
|
||||||
|
|
@ -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模块
|
||||||
|
|
|
||||||
|
|
@ -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模块
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
})
|
})
|
||||||
//启动定时任务
|
//启动定时任务
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue