mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
Fix crash due to setting Thread.name after thread start.
Signed-off-by: Diva Canto <diva@metaverseink.com>
This commit is contained in:
committed by
Diva Canto
parent
1e44aba620
commit
97a471cb35
@@ -121,7 +121,8 @@ namespace OpenSim.Framework.Monitoring
|
||||
Thread thread = new Thread(start);
|
||||
thread.Priority = priority;
|
||||
thread.IsBackground = isBackground;
|
||||
|
||||
thread.Name = name;
|
||||
|
||||
Watchdog.ThreadWatchdogInfo twi
|
||||
= new Watchdog.ThreadWatchdogInfo(thread, timeout, name)
|
||||
{ AlarmIfTimeout = alarmIfTimeout, AlarmMethod = alarmMethod };
|
||||
@@ -129,7 +130,7 @@ namespace OpenSim.Framework.Monitoring
|
||||
Watchdog.AddThread(twi, name, log:log);
|
||||
|
||||
thread.Start();
|
||||
thread.Name = name;
|
||||
|
||||
|
||||
return thread;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user