OctopusDeploy / Halibut

| Public | A secure communication stack for .NET using JSON-RPC over SSL.
Other
12 stars 44 forks source link

Fix TcpClientManager Collection was modified during Disposal #502

Closed nathanwoctopusdeploy closed 1 year ago

nathanwoctopusdeploy commented 1 year ago

Background

Fix

System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
   at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at Halibut.Transport.TcpClientManager.Dispose()
   at Halibut.Transport.SecureListener.Dispose()
   at Halibut.HalibutRuntime.Dispose()

How to review this PR

Quality :heavy_check_mark:

Pre-requisites