|
rck Novice
Joined: 26 Oct 2005 Posts: 32 Location: California
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
rck Novice
Joined: 26 Oct 2005 Posts: 32 Location: California
|
Posted: Wed Dec 19, 2007 6:12 am |
Yes, and I would suggest maybe adding another event OnReconnect or so in place of this.
|
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
|
|