Bug fix.
Iterate over a copy of the players instead of the set itself as in
the loop, a player might attempt to remove itself, changing the size
of the set while iterating over it.
@@ -205,7 +205,7 @@ class PlayerWorker(MediaThread):
if self.players:
filled = False
- for player in self.players:
+ for player in self.players.copy():
write_size = player.get_write_size()
if write_size > player.min_buffer_size:
player.refill(write_size)
