Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove arbitrary 1.5 second sleep() when launching jobs
I think the sleep is supposed to make launch() not return until the job has actually been launched but it doesn't work as launch() and getCrawlController() are both synchronized therefore the launcher thread can't actually call startContext() until launch() returns after sleeping. So let's replace the sleep call with join and unsynchronize launch() so it doesn't deadlock. All the relevant methods it calls seem to be synchronized so I think it's no worse to not synchronize it itself.
- Loading branch information