//重置线上线上线程

back_recharge
zhangshanxue 2020-11-09 15:06:29 +08:00
parent 718468b3a1
commit 0c67fac433
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import com.ljsd.jieling.core.HandlerLogicThread;
import com.ljsd.jieling.network.server.ProtocolsManager;
//restart
//restart 10047378 4
public class Cmd_restart extends GmRoleAbstract{
@Override
public boolean exec(String[] args) throws Exception {
@ -23,6 +23,7 @@ public class Cmd_restart extends GmRoleAbstract{
LOGGER.error("Exception to change thread name"+ name);
System.out.println("name = " + name);
try {
ProtocolsManager.handlerThreads[Integer.parseInt(args[0])].stop();
ProtocolsManager.handlerThreads[Integer.parseInt(args[0])].interrupt();
}catch (Exception e){LOGGER.error(e.toString());}