diff options
author | Diva Canto | 2014-07-03 20:09:38 -0700 |
---|---|---|
committer | Diva Canto | 2014-07-03 20:09:38 -0700 |
commit | d0782c2bc0f4d4f644188deec7638efaf8e81514 (patch) | |
tree | 3788483ff89a3134b98726d9cb782814aca9efc0 /OpenSim/Framework/Util.cs | |
parent | Avoid an exception in creating child agents some times. (diff) | |
parent | Temporarily disable new regression test TestLifecycle() until I have a chance... (diff) | |
download | opensim-SC-d0782c2bc0f4d4f644188deec7638efaf8e81514.zip opensim-SC-d0782c2bc0f4d4f644188deec7638efaf8e81514.tar.gz opensim-SC-d0782c2bc0f4d4f644188deec7638efaf8e81514.tar.bz2 opensim-SC-d0782c2bc0f4d4f644188deec7638efaf8e81514.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 740e55a..729281c 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1964,10 +1964,15 @@ namespace OpenSim.Framework | |||
1964 | { | 1964 | { |
1965 | if (maxThreads < 2) | 1965 | if (maxThreads < 2) |
1966 | throw new ArgumentOutOfRangeException("maxThreads", "maxThreads must be greater than 2"); | 1966 | throw new ArgumentOutOfRangeException("maxThreads", "maxThreads must be greater than 2"); |
1967 | |||
1967 | if (minThreads > maxThreads || minThreads < 2) | 1968 | if (minThreads > maxThreads || minThreads < 2) |
1968 | throw new ArgumentOutOfRangeException("minThreads", "minThreads must be greater than 2 and less than or equal to maxThreads"); | 1969 | throw new ArgumentOutOfRangeException("minThreads", "minThreads must be greater than 2 and less than or equal to maxThreads"); |
1970 | |||
1969 | if (m_ThreadPool != null) | 1971 | if (m_ThreadPool != null) |
1970 | throw new InvalidOperationException("SmartThreadPool is already initialized"); | 1972 | { |
1973 | m_log.Warn("SmartThreadPool is already initialized. Ignoring request."); | ||
1974 | return; | ||
1975 | } | ||
1971 | 1976 | ||
1972 | STPStartInfo startInfo = new STPStartInfo(); | 1977 | STPStartInfo startInfo = new STPStartInfo(); |
1973 | startInfo.ThreadPoolName = "Util"; | 1978 | startInfo.ThreadPoolName = "Util"; |