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

archiveis - fix panic from closing a closed channel #221

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

donners
Copy link
Contributor

@donners donners commented Feb 5, 2020

If one of the recursive calls encounters an error, it was closing the channel without setting the closed flag. This change moves the channel close outside enumerate() so there's only one place that needs to close it.

Also removed the loop in enumerate() which wasn't necessary.

If one of the recursive calls encounters an error, it was closing the channel without setting the closed flag. This change moves the channel close outside enumerate() so there's only one place that needs to close it.

Also removed the loop in enumerate() which wasn't necessary.
@donners donners requested a review from Ice3man543 February 5, 2020 01:05
@Ice3man543
Copy link
Member

@donners, nice catch. let me review and merge!

@Ice3man543 Ice3man543 merged commit 7ecaa96 into projectdiscovery:master Feb 13, 2020
@donners donners deleted the archiveis-fix-panic branch November 10, 2021 00:41
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.

2 participants