refactor: call Util.InitThreadPool() if we are initializing an uninitialized pool on first use rather than constructing it ourselves.

No functional change.
0.7.5-pf-bulletsim
Justin Clark-Casey (justincc) 2013-01-01 23:50:38 +00:00
parent e8a3cc7019
commit 416244051d
1 changed files with 1 additions and 1 deletions

View File

@ -1719,7 +1719,7 @@ namespace OpenSim.Framework
break;
case FireAndForgetMethod.SmartThreadPool:
if (m_ThreadPool == null)
m_ThreadPool = new SmartThreadPool(2000, 15, 2);
InitThreadPool(15);
m_ThreadPool.QueueWorkItem(SmartThreadPoolCallback, new object[] { realCallback, obj });
break;
case FireAndForgetMethod.Thread: