Possible bug in AS2 client
Posted: 09 Jul 2007, 02:21
I'm finding in my Smartfox app that if I call SmartfoxClient.disconnect and then call SmartfoxClient.connect again later, I get an error in the console saying "WARNING! You are already connected to ...ip address..." when in fact the connection has been closed. The source of the disconnect method is:With this code, the connectionClosed method never gets called, which is what sets this.connected to false and allows a second connection.
Seems to me that the disconnect method should be:
Code: Select all
public function disconnect()
{
close()
onConnectionLost()
}Seems to me that the disconnect method should be:
Code: Select all
public function disconnect()
{
close()
connectionClosed()
}