From dc320d4b3e8294864217c2cf27208ab85700f4dd Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 08 九月 2020 13:11:48 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/CrnThread.java | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/zy/core/thread/CrnThread.java b/src/main/java/com/zy/core/thread/CrnThread.java index c800167..9a4f4ea 100644 --- a/src/main/java/com/zy/core/thread/CrnThread.java +++ b/src/main/java/com/zy/core/thread/CrnThread.java @@ -164,7 +164,8 @@ } } else { - throw new CoolException("鍫嗗灈鏈簆lc鐘舵�佷俊鎭け璐�"); + OutputQueue.CRN.offer(MessageFormat.format("銆恵0}銆憑1}鍫嗗灈鏈簆lc鐘舵�佷俊鎭け璐�",DateUtils.convert(new Date()), slave.getId())); + throw new CoolException(MessageFormat.format( "鍫嗗灈鏈簆lc鐘舵�佷俊鎭け璐� ===>> [id:{0}] [ip:{1}] [port:{2}]", slave.getId(), slave.getIp(), slave.getPort())); } /* 鏂规硶2 */ // crnProtocol.setMode(melsecMcNet.ReadInt16("D2231").Content); @@ -266,13 +267,6 @@ @Override public void close() { melsecMcNet.ConnectClose(); - } - - public CrnProtocol getCrnProtocol(){ - if (crnProtocol == null) { - throw new CoolException(slave.getId() + "鍙峰爢鍨涙満杩炴帴澶辫触"); - } - return this.crnProtocol; } -- Gitblit v1.9.1