Skip to content

Use ToArray() in ClearCachedConnections to prevent InvalidOperationEx…#42

Open
GoldenCave wants to merge 1 commit intoume05rw:masterfrom
GoldenCave:bugfix/goldencave/SmbTransportClearCachedConnectionsPreventInvalidOperationException
Open

Use ToArray() in ClearCachedConnections to prevent InvalidOperationEx…#42
GoldenCave wants to merge 1 commit intoume05rw:masterfrom
GoldenCave:bugfix/goldencave/SmbTransportClearCachedConnectionsPreventInvalidOperationException

Conversation

@GoldenCave
Copy link

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

…ceptions being raised from removing items from the collection used by the foreach loop. Credit gcamp806.

(cherry picked from commit 5387168)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SmbTransport.ClearCachedConnections with force=true leads to InvalidOperationException

1 participant