Skip to content

Commit 77e150c

Browse files
author
leiizhao
committed
update
1 parent fdcee85 commit 77e150c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gate/DefaultGateComponent.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func (this *DefaultGateComponent) Awake(ctx *ecs.Context) {
5050
PackageProtocol: &network.TdProtocol{},
5151
Address: config.Config.ClusterConfig.NetListenAddress,
5252
ReadTimeout: time.Millisecond * time.Duration(config.Config.ClusterConfig.NetConnTimeout),
53-
OnClientDisconnected: this.NetAPI.OnDisconneted,
54-
OnClientConnected: this.NetAPI.OnConnected,
53+
OnClientDisconnected: this.OnDropped,
54+
OnClientConnected: this.OnConnected,
5555
NetAPI: this.NetAPI,
5656
MaxInvoke: 20,
5757
}
@@ -74,6 +74,7 @@ func (this *DefaultGateComponent) OnConnected(sess *network.Session) {
7474

7575
func (this *DefaultGateComponent) OnDropped(sess *network.Session) {
7676
this.clients.Delete(sess.ID)
77+
sess.PostProcessing()
7778
}
7879

7980
func (this *DefaultGateComponent) Destroy() error {

0 commit comments

Comments
 (0)