Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
hhblaze committed Aug 13, 2019
1 parent 6d270d0 commit 4aecf0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Process1/SharmIpc/SharmIpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ public SharmIpc(string uniqueHandlerName, Action<ulong, byte[]> remoteCallHandle
//This timer is necessary for Calls based on Callbacks, calls based on WaitHandler have their own timeout,
//That's why for non-callback calls, timeout will be infinite
List<ulong> toRemove = new List<ulong>();
foreach (var el in df.Where(r => now.Subtract(r.Value.created).TotalMilliseconds >= r.Value.TimeoutsMs))

//foreach (var el in df.Where(r => now.Subtract(r.Value.created).TotalMilliseconds >= r.Value.TimeoutsMs))
foreach (var el in df.Where(r => now.Subtract(r.Value.created).TotalMilliseconds >= r.Value.TimeoutsMs).ToList())
{
if(el.Value.callBack != null)
toRemove.Add(el.Key);
Expand Down

0 comments on commit 4aecf0f

Please sign in to comment.