Here's the server log:
Code: Select all
16:12:27,132 INFO [SFSWorker:Sys:2] api.SFSApi - Room joined: [ MMORoom: Lobby, Id: 0, Group: default, AOI: (400, 200, 0) ], { Zone: Rune }, ( User Name: moccha, Id: 0, Priv: 0, Sess: 127.0.0.1:50777 ) , asSpect: false
16:12:31,307 INFO [SocketReader] sessions.DefaultSessionManager - Session removed: { Id: 1, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:50777 }
16:12:31,308 INFO [SFSWorker:Sys:4] api.SFSApi - User disconnected: { Zone: Rune }, ( User Name: moccha, Id: 0, Priv: 0, Sess: 127.0.0.1:50777 ) , SessionLen: 4223, Type: Flash
16:12:31,308 INFO [SFSWorker:Ext:1] Extensions - {relic}: Run disconnect.
16:12:31,310 INFO [SFSWorker:Ext:1] Extensions - {relic}: Run disconnect.
I cannot figure out why this event is fired twice. Does it have to do with catching both the "session removed" and the "User disconnected" actions? I only want to run the disconnect code once, so is there anything I can check to make sure it runs once per user disconnection?