Moved from Pool to ThreadPool

This commit is contained in:
Bernardo Meurer 2018-08-13 23:22:40 -03:00
parent 22a6a0e6ef
commit 6c2daa061e
No known key found for this signature in database
GPG key ID: E421C74191EA186C

View file

@ -25,7 +25,7 @@ import os
import subprocess
import tempfile
from multiprocessing import Pool
from multiprocessing import ThreadPool
from distutils.spawn import find_executable
import requests
@ -104,7 +104,7 @@ class AcousticBrainzSubmitPlugin(plugins.BeetsPlugin):
def command(self, lib, opts, args):
# Create threadpool
pool = Pool()
pool = ThreadPool()
# Get items from arguments
items = lib.items(ui.decargs(args))
pool.map(self.analyze_submit, items)