diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 3243c2f..ebbecb7 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -471,12 +471,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
471 | m_PacketHandler.OnPacketStats += PopulateStats; | 471 | m_PacketHandler.OnPacketStats += PopulateStats; |
472 | 472 | ||
473 | RegisterLocalPacketHandlers(); | 473 | RegisterLocalPacketHandlers(); |
474 | |||
475 | m_clientThread = new Thread(Start); | ||
476 | m_clientThread.Name = "ClientThread"; | ||
477 | m_clientThread.IsBackground = true; | ||
478 | m_clientThread.Start(); | ||
479 | ThreadTracker.Add(m_clientThread); | ||
480 | } | 474 | } |
481 | 475 | ||
482 | public void SetDebugPacketLevel(int newDebugPacketLevel) | 476 | public void SetDebugPacketLevel(int newDebugPacketLevel) |
@@ -813,11 +807,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
813 | RefreshGroupMembership(); | 807 | RefreshGroupMembership(); |
814 | } | 808 | } |
815 | 809 | ||
810 | public virtual void Start() | ||
811 | { | ||
812 | m_clientThread = new Thread(RunUserSession); | ||
813 | m_clientThread.Name = "ClientThread"; | ||
814 | m_clientThread.IsBackground = true; | ||
815 | m_clientThread.Start(); | ||
816 | ThreadTracker.Add(m_clientThread); | ||
817 | } | ||
818 | |||
816 | /// <summary> | 819 | /// <summary> |
817 | /// Start a user session. This method lies at the base of the entire client thread. | 820 | /// Run a user session. This method lies at the base of the entire client thread. |
818 | /// </summary> | 821 | /// </summary> |
819 | protected virtual void Start() | 822 | protected virtual void RunUserSession() |
820 | { | 823 | { |
821 | //tell this thread we are using the culture set up for the sim (currently hardcoded to en_US) | 824 | //tell this thread we are using the culture set up for the sim (currently hardcoded to en_US) |
822 | //otherwise it will override this and use the system default | 825 | //otherwise it will override this and use the system default |
823 | Culture.SetCurrentCulture(); | 826 | Culture.SetCurrentCulture(); |