Skip to content

Commit

Permalink
Set initial value of LastActiveTickCount (#2953)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsuciu authored Jan 23, 2025
1 parent 55137ba commit 7c0e806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Stack/Opc.Ua.Core/Stack/Tcp/TcpListenerChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void IdleCleanup()
lock (DataLock)
{
state = State;
if (state == TcpChannelState.Open)
if (state == TcpChannelState.Open || state == TcpChannelState.Connecting)
{
state = State = TcpChannelState.Closing;
}
Expand Down
2 changes: 1 addition & 1 deletion Stack/Opc.Ua.Core/Stack/Tcp/UaSCBinaryChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ public void UpdateLastActiveTime()

private TcpChannelStateEventHandler m_StateChanged;

private int m_lastActiveTickCount;
private int m_lastActiveTickCount = HiResClock.TickCount;
#endregion

#region Constants
Expand Down

0 comments on commit 7c0e806

Please sign in to comment.