GoldenCave

Results 2 issues of GoldenCave

Use ToArray() in ClearCachedConnections to prevent InvalidOperationExceptions being raised from removing items from the collection used by the foreach loop. Credit gcamp806. This fixes #40

When calling SmbTransport.ClearCachedConnections (true) with force=true, we experienced an InvalidOperationException: > System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.List`1.Enumerator.MoveNextRare() at SharpCifs.Smb.SmbTransport.ClearCachedConnections(Boolean force) Here is the code: [SmbTransport.ClearCachedConnections](https://github.com/ume05rw/SharpCifs.Std/blob/d74af592ac052750ab56c91183f5319d58a93031/SharpCifs.STD1.3/Smb/SmbTransport.cs#L93)....