diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs b/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs index 08c7e80..f68fd51 100644 --- a/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs +++ b/OpenSim/Region/ScriptEngine/YEngine/XMRScriptThread.cs | |||
@@ -166,7 +166,9 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
166 | 166 | ||
167 | if(inst == null) | 167 | if(inst == null) |
168 | break; | 168 | break; |
169 | if(inst.m_IState != XMRInstState.ONSTARTQ) | 169 | if (inst.m_IState == XMRInstState.SUSPENDED) |
170 | continue; | ||
171 | if (inst.m_IState != XMRInstState.ONSTARTQ) | ||
170 | throw new Exception("bad state"); | 172 | throw new Exception("bad state"); |
171 | RunInstance(inst, tid); | 173 | RunInstance(inst, tid); |
172 | if(m_SuspendScriptThreadFlag || m_Exiting) | 174 | if(m_SuspendScriptThreadFlag || m_Exiting) |
@@ -187,7 +189,9 @@ namespace OpenSim.Region.ScriptEngine.Yengine | |||
187 | 189 | ||
188 | if(inst != null) | 190 | if(inst != null) |
189 | { | 191 | { |
190 | if(inst.m_IState != XMRInstState.ONYIELDQ) | 192 | if (inst.m_IState == XMRInstState.SUSPENDED) |
193 | continue; | ||
194 | if (inst.m_IState != XMRInstState.ONYIELDQ) | ||
191 | throw new Exception("bad state"); | 195 | throw new Exception("bad state"); |
192 | RunInstance(inst, tid); | 196 | RunInstance(inst, tid); |
193 | continue; | 197 | continue; |