From 3df8e94f0703e73571d02fcb3cddbfcc709277ff Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 23 Jul 2018 15:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E8=BF=9E=E6=8E=A5=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E5=85=B3=E9=97=AD=E5=B0=B1=E4=B8=8D=E8=A6=81=E5=9C=A8?= =?UTF-8?q?=E8=AF=BB=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SCADA/Program/DataService/PLCGroup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCADA/Program/DataService/PLCGroup.cs b/SCADA/Program/DataService/PLCGroup.cs index 6d3c26a..67c3ea5 100644 --- a/SCADA/Program/DataService/PLCGroup.cs +++ b/SCADA/Program/DataService/PLCGroup.cs @@ -305,7 +305,7 @@ namespace DataService object sync = new object(); protected void timer_Timer(object sender, EventArgs e) { - if (_isActive) + if (_isActive && !_plcReader.IsClosed) { lock (sync) {