Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
rck
Novice


Joined: 26 Oct 2005
Posts: 32
Location: California

PostPosted: Wed Dec 19, 2007 6:05 am   

[2.18] OnDisconnect called when not connected (reconnecting)
 
If a connection to a server fails the OnDisconnect event will be raised even if there was no connection previously made (in the case of reconnecting over and over).
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Dec 19, 2007 6:11 am   
 
Yeah, it has always been that way. I happen to agree the OnDisconnect should only occur when an established connection is lost.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
rck
Novice


Joined: 26 Oct 2005
Posts: 32
Location: California

PostPosted: Wed Dec 19, 2007 6:12 am   
 
Yes, and I would suggest maybe adding another event OnReconnect or so in place of this.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Dec 19, 2007 6:46 am   
 
I think part of it is that OnConnect is called ahead of an actual connection. If I remember the timing right OnConnect gets called at the initiation of an attempt to connect, both really need to match the actual status. I might have to test onConnect again, it has been a very long time since I checked just when it gets called. I am sure about OnDisconnect though since that was always my more involved script of the 2.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net