Fix race condition when adding items to the library (#354)
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Wed, 1 Jun 2022 11:17:03 +0000 (13:17 +0200)
committerGitHub <noreply@github.com>
Wed, 1 Jun 2022 11:17:03 +0000 (13:17 +0200)
commita71a7ee4998b3a517560d4d782a5204ad2d2d665
tree58678144faad4c5192db93c7b2283018267cf708
parent6ecfc097145c261226e9cdc59c8e90bda222fca3
Fix race condition when adding items to the library (#354)

* allow backgroundjobs to be awaited

* adjust controller to await the job if not lazy
music_assistant/mass.py
music_assistant/models/background_job.py
music_assistant/models/media_controller.py