Code: Select all
npcRunnerTask = SmartFoxServer.getInstance().getTaskScheduler().scheduleAtFixedRate
(
npcRunner,
0, // 0 initial delay
100, // run every 100ms
TimeUnit.MILLISECONDS
);
That was from the mmo demo room stuff that Im still using in my script. Nothing seems to be calling a stop or cancel for this task so I find it very odd that as soon as the user gets disconnected, the Runnable task stops running.
This needs to be handled asap, thank you!