onObjectReceived called more times

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
ganapathi
Posts: 8
Joined: 28 Mar 2011, 05:45
Location: chennai

onObjectReceived called more times

Post by ganapathi »

Hi,

now i am having one problem in sfs.. am using sfs pro 1.6.6.

sometimes SFSEvent.onObjectReceived and SFSEvent.onUserVariablesUpdate function will trigger more than one times..

how to solve this issue..


/Ganapathi
/Ganapathi
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

It may be due to having multiple event listeners to the same function. Also, it could be caused by your old event listeners not being destroyed by garbage collector. http://stackoverflow.com/questions/2665 ... ialization for more info about weak referenced event listeners.
Smartfox's forum is my daily newspaper.
Post Reply