mirror of
				https://gitee.com/ThingsGateway/ThingsGateway.git
				synced 2025-11-04 17:43:58 +08:00 
			
		
		
		
	update opcdaclient null error
This commit is contained in:
		@@ -519,8 +519,12 @@ public class OPCDAClient : DisposableObject
 | 
			
		||||
        {
 | 
			
		||||
            if (IsConnected)
 | 
			
		||||
                _logger?.Trace($"{m_server.Host + " - " + m_server.Name} - 断开连接");
 | 
			
		||||
            checkTimer.Enabled = false;
 | 
			
		||||
            checkTimer.Stop();
 | 
			
		||||
            if (checkTimer != null)
 | 
			
		||||
            {
 | 
			
		||||
                checkTimer.Enabled = false;
 | 
			
		||||
                checkTimer.Stop();
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            try
 | 
			
		||||
            {
 | 
			
		||||
                m_server?.SafeDispose();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user