Browse Source

如果连接已经关闭就不要在读了

pull/22/head
Kevin 8 years ago
parent
commit
3df8e94f07
  1. 2
      SCADA/Program/DataService/PLCGroup.cs

2
SCADA/Program/DataService/PLCGroup.cs

@ -305,7 +305,7 @@ namespace DataService
object sync = new object(); object sync = new object();
protected void timer_Timer(object sender, EventArgs e) protected void timer_Timer(object sender, EventArgs e)
{ {
if (_isActive) if (_isActive && !_plcReader.IsClosed)
{ {
lock (sync) lock (sync)
{ {

Loading…
Cancel
Save