Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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