//重置线上线上线程
parent
718468b3a1
commit
0c67fac433
|
@ -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());}
|
||||
|
||||
|
|
Loading…
Reference in New Issue