fix build failure I4KUOB

This commit is contained in:
peiwangdb 2021-12-13 11:36:10 -05:00
parent 234ce472a2
commit 462945f2c1
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class MemoryThreadManager
* @param size
* @return
*/
public static ScheduledExecutorService initSharedThreadPool(int size)
public static synchronized ScheduledExecutorService initSharedThreadPool(int size)
{
if (executor == null) {
executor = Executors.newScheduledThreadPool(Math.max(size, 1), threadFactory);