Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1fcc696 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Fix crashing archives due to 0 size queue.

The code was incorrect, the queue size should be unlimited.

Test: Unit tests now pass.
Bug: 33132744
Change-Id: Ib1fd66f7346b97f34260461a47bb9a93eb057d0c
parent b33955b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ public class Archive implements Closeable {
        // At most 8 active threads. All threads idling for more than a minute will
        // be closed.
        mExecutor = new ThreadPoolExecutor(8, 8, 60, TimeUnit.SECONDS,
                new LinkedBlockingQueue<Runnable>(0));
                new LinkedBlockingQueue<Runnable>());
        mExecutor.allowCoreThreadTimeOut(true);

        // Build the tree structure in memory.