PDA

View Full Version : application.onDisconnect doesn't shoot...


galak
03-22-2009, 01:26 AM
Hi I have this annoying situation, all over forums and manuals I see that there is this very useful method which is onDisconnect and everybody seems very happy with it...

But for me, well it doesn't work... Here is the code I have:

application.onDisconnect = function (clientObj){
if(clientObj.ip == counterSO.getProperty("moderator")){
counterSO.setProperty("file", null)
counterSO.setProperty("moderator", null)
}
counterSO.send("check_id", counterSO.getProperty("moderator") + " the ID from disconnect " + clientObj.ip);
}


the
counterSO.send("check_id", counterSO.getProperty("moderator") + " the ID from disconnect " + clientObj.ip);

function works because I also have it in the onConnect, and there it shoots, but one in the onDisonnect, it never ever does... it's really bugging me.

Anyone has an idea why ?

Cheers,

David