mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-29 07:07:24 +08:00
Set initial value of LastActiveTickCount (#2953)
This commit is contained in:
committed by
Martin
parent
930ba09620
commit
d0c8d9e8a8
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user