Update mixer.py
This commit is contained in:
parent
3ea8991540
commit
dec5af480a
1 changed files with 1 additions and 3 deletions
|
@ -79,9 +79,7 @@ def find_channel(force=False):
|
|||
if not force:
|
||||
return None
|
||||
|
||||
busy.sort(key=lambda x : x.play_time)
|
||||
|
||||
return busy[0]
|
||||
return min(busy, key=lambda x : x.play_time)
|
||||
|
||||
class ChannelImpl(object):
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue