mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	fix possible races
This commit is contained in:
		| @@ -233,8 +233,8 @@ public abstract class PlayQueue implements Serializable { | ||||
|      * @return an immutable view of the play queue | ||||
|      */ | ||||
|     @NonNull | ||||
|     public synchronized List<PlayQueueItem> getStreams() { // todo: iterator race | ||||
|         return Collections.unmodifiableList(streams); | ||||
|     public synchronized List<PlayQueueItem> getStreams() { | ||||
|         return Collections.unmodifiableList(new ArrayList<>(streams)); | ||||
|     } | ||||
|  | ||||
|     /*////////////////////////////////////////////////////////////////////////// | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zelva
					zelva