Set initial value of LastActiveTickCount (#2953)

This commit is contained in:
Suciu Mircea Adrian
2025-02-13 06:55:27 +01:00
committed by Martin
parent 930ba09620
commit d0c8d9e8a8
2 changed files with 2 additions and 2 deletions
@@ -159,7 +159,7 @@ namespace Opc.Ua.Bindings
lock (DataLock)
{
state = State;
if (state == TcpChannelState.Open)
if (state == TcpChannelState.Open || state == TcpChannelState.Connecting)
{
state = State = TcpChannelState.Closing;
}
@@ -883,7 +883,7 @@ namespace Opc.Ua.Bindings
private TcpChannelStateEventHandler m_StateChanged;
private int m_lastActiveTickCount;
private int m_lastActiveTickCount = HiResClock.TickCount;
#endregion
}