Fix downloader deadlock.