Skip to content

Commit

Permalink
Fixed concurrent mod ex in jobs collection
Browse files Browse the repository at this point in the history
  • Loading branch information
mondain committed Jul 10, 2015
1 parent 68d04be commit c090111
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

Expand Down Expand Up @@ -102,7 +103,7 @@ public class PlaylistSubscriberStream extends AbstractClientStream implements IP
/**
* Scheduled job names
*/
protected Set<String> jobs = new HashSet<String>(1);
protected CopyOnWriteArraySet<String> jobs = new CopyOnWriteArraySet<String>();

/**
* Interval in ms to check for buffer underruns in VOD streams.
Expand Down

0 comments on commit c090111

Please sign in to comment.