mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
merge fix
This commit is contained in:
parent
30d44ce869
commit
c89f1c0d39
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ public class ThreadExecutorImpl implements ThreadExecutor {
|
|||
((ThreadPoolExecutor) gameExecutor).allowCoreThreadTimeOut(true);
|
||||
((ThreadPoolExecutor) gameExecutor).setThreadFactory(new XmageThreadFactory(ThreadUtils.THREAD_PREFIX_GAME));
|
||||
|
||||
tourneyExecutor = new FixedThreadPoolWithException(Math.min(2, config.getMaxGameThreads() / GAMES_PER_TOURNEY_RATIO));
|
||||
tourneyExecutor = new FixedThreadPoolWithException(Math.max(2, config.getMaxGameThreads() / GAMES_PER_TOURNEY_RATIO));
|
||||
((ThreadPoolExecutor) tourneyExecutor).setKeepAliveTime(60, TimeUnit.SECONDS);
|
||||
((ThreadPoolExecutor) tourneyExecutor).allowCoreThreadTimeOut(true);
|
||||
((ThreadPoolExecutor) tourneyExecutor).setThreadFactory(new XmageThreadFactory(ThreadUtils.THREAD_PREFIX_TOURNEY));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue