File tree Expand file tree Collapse file tree
lib/src/main/java/xyz/gianlu/librespot/cache Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333import java .security .MessageDigest ;
3434import java .security .NoSuchAlgorithmException ;
3535import java .util .*;
36- import java .util .concurrent .ConcurrentHashMap ;
3736import java .util .concurrent .TimeUnit ;
3837
3938import static xyz .gianlu .librespot .audio .storage .ChannelManager .CHUNK_SIZE ;
@@ -55,7 +54,7 @@ public class CacheManager implements Closeable {
5554 private static final int HEADER_HASH = 253 ;
5655 private final File parent ;
5756 private final CacheJournal journal ;
58- private final Map <String , Handler > fileHandlers = new ConcurrentHashMap <>();
57+ private final Map <String , Handler > fileHandlers = Collections . synchronizedMap ( new HashMap <>() );
5958
6059 public CacheManager (@ NotNull Session .Configuration conf ) throws IOException {
6160 if (!conf .cacheEnabled ) {
You can’t perform that action at this time.
0 commit comments