-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
The old code in mopidy-youtube includes the following hack:
# # What was this for? Whatever it was for, it doesn't work
# # for pykka v4.3 onwards, since ThreadingFuture uses
# # a condition variable instead of a queue
if not future._queue.empty(): # hack, no public is_set()
continue
mopidy-youtube/mopidy_youtube/youtube.py
Line 160 in 023beee
| # if not future._queue.empty(): # hack, no public is_set() |
It no longer works with the current version of pykka because Queue.queue is no longer used in ThreadingFuture. The code doesn't function correctly without it. Would somebody be able to explain what the old code was doing, and what a sensible replacement might be?
Cheers,
Nik
Metadata
Metadata
Assignees
Labels
No labels