@ -40,10 +40,10 @@ public class IecServer implements ServerEventListener {
}
public void close() {
public void stop() {
if (serverSap != null) {
serverSap.stop();
log.info("已停止IEC61850服务端.");
log.info("已停止IEC61850服务端于" + port + "端口");
started = false;
@ -76,8 +76,7 @@ public class IecServerService {
private void onlyStopServer(Integer fileId) {
IecServer iecServer = StaticVariable.iecServerMap.get(fileId);
if (iecServer != null) {
log.info("关闭IecServer服务, port=" + iecServer.port);
iecServer.close();
iecServer.stop();
StaticVariable.iecServerMap.remove(fileId);