Preventing idle timeout on moderators
Posted: 25 Jan 2011, 23:35
smartfox version 1.6.8
java version 1.6.0_21
Do moderators get kicked after idle timeout?
I searched around in the docs and forums but I did not see anything saying one way or the other. Even with the quote below it is still not clear...
http://forums.smartfoxserver.com/viewto ... moderators
Well I tried it on my own and seems like they do get disconnected after the time in MaxUserIdleTime has expired.
So I wanted to prevent moderators from being kicked. After some searching I saw the updateMessageTime() function, and decided to try that. I am calling it in a timer like this:
and in KeepModeratorsAliveTimer I simply call the updateMessageTime() function on users that are moderators. This is of course all server-side and in java.
Hope this helps someone, also let me know if there is something bad with how I am doing this. Thank you!
java version 1.6.0_21
Do moderators get kicked after idle timeout?
I searched around in the docs and forums but I did not see anything saying one way or the other. Even with the quote below it is still not clear...
http://forums.smartfoxserver.com/viewto ... moderators
nespe11 wrote:I´m trying to log the clients as Moderators to avoid that the smartfoxserver kick them.
Well I tried it on my own and seems like they do get disconnected after the time in MaxUserIdleTime has expired.
So I wanted to prevent moderators from being kicked. After some searching I saw the updateMessageTime() function, and decided to try that. I am calling it in a timer like this:
Code: Select all
keepAliveTimer.schedule(new KeepModeratorsAliveTimer(this), 0, 15000);Hope this helps someone, also let me know if there is something bad with how I am doing this. Thank you!