File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ func (this *DefaultGateComponent) Awake(ctx *ecs.Context) {
50
50
PackageProtocol : & network.TdProtocol {},
51
51
Address : config .Config .ClusterConfig .NetListenAddress ,
52
52
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 ,
55
55
NetAPI : this .NetAPI ,
56
56
MaxInvoke : 20 ,
57
57
}
@@ -74,6 +74,7 @@ func (this *DefaultGateComponent) OnConnected(sess *network.Session) {
74
74
75
75
func (this * DefaultGateComponent ) OnDropped (sess * network.Session ) {
76
76
this .clients .Delete (sess .ID )
77
+ sess .PostProcessing ()
77
78
}
78
79
79
80
func (this * DefaultGateComponent ) Destroy () error {
You can’t perform that action at this time.
0 commit comments