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

Canhcel crawl job running with multi-threads will cause a exception threw #68

Closed
songshine opened this issue Apr 1, 2015 · 1 comment
Labels

Comments

@songshine
Copy link

When you cancel the crawl job, the WebCrawler will dispose the _threadManager and its _resetEvent will also be displsed. But the ThreadManager class can't make sure that all threads running have been completed at the time. So if a thread is running the RunAction method and it will catch a OperationCanceledException exception and finally _resetEvent.Set() will throw a exception said the safe handle was closed.

@sjdirect sjdirect added the bug label Apr 1, 2015
@sjdirect
Copy link
Owner

sjdirect commented Apr 1, 2015

Thanks for submitting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants