Code: Select all
SendStats = sfs.getTaskScheduler().scheduleAtFixedRate(new SendStats(), 0, 10, TimeUnit.SECONDS);
i think my code is true and i'm confused for this problem, i donet know what i have to do, please help me if you can, thanks.
Code: Select all
SendStats = sfs.getTaskScheduler().scheduleAtFixedRate(new SendStats(), 0, 10, TimeUnit.SECONDS);
ok, i'm going to check catching all exceptions and send you feedback, thanks for your helpLapo wrote:Hi,
you have to make sure to catch all exceptions inside your run() method otherwise an error in your task could stop it from running. Check this short article for more details:
https://smartfoxserver.com/blog/how-to- ... extension/
Hope it helps
catch exceptions solved my problems, thank you.Lapo wrote:Hi,
you have to make sure to catch all exceptions inside your run() method otherwise an error in your task could stop it from running. Check this short article for more details:
https://smartfoxserver.com/blog/how-to- ... extension/
Hope it helps