diff options
author | Justin Clark-Casey (justincc) | 2011-09-26 23:00:16 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-09-26 23:00:16 +0100 |
commit | a3531dec1aaafdcd22a70764cc512dd5666c75fc (patch) | |
tree | b8b9deb471f1f36e1fa3409847bc6e6ab588673d /OpenSim/Region | |
parent | Fix for rezzing and derezzing HUDs (see Mantis #5406). From now on updates ar... (diff) | |
download | opensim-SC-a3531dec1aaafdcd22a70764cc512dd5666c75fc.zip opensim-SC-a3531dec1aaafdcd22a70764cc512dd5666c75fc.tar.gz opensim-SC-a3531dec1aaafdcd22a70764cc512dd5666c75fc.tar.bz2 opensim-SC-a3531dec1aaafdcd22a70764cc512dd5666c75fc.tar.xz |
Add en_US culture setting to the async delete to inventory thread, to avoid any issues with float serialization with machines set to non en_US locales.
Doing this to see if addresses inventory object deserialization problems in http://opensimulator.org/mantis/view.php?id=5708, though if it does I'm really surprised not to have seen it before now.
Really need to go through and systematically set the culture for every timer and change all BeginInvoke calls to FireAndForget instead.
But don't want to do something like that this close to a release.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs b/OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs index 3423542..0ac3899 100644 --- a/OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs +++ b/OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs | |||
@@ -112,6 +112,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
112 | private void InventoryRunDeleteTimer(object sender, ElapsedEventArgs e) | 112 | private void InventoryRunDeleteTimer(object sender, ElapsedEventArgs e) |
113 | { | 113 | { |
114 | m_log.Debug("[ASYNC DELETER]: Starting send to inventory loop"); | 114 | m_log.Debug("[ASYNC DELETER]: Starting send to inventory loop"); |
115 | |||
116 | // We must set appearance parameters in the en_US culture in order to avoid issues where values are saved | ||
117 | // in a culture where decimal points are commas and then reloaded in a culture which just treats them as | ||
118 | // number seperators. | ||
119 | Culture.SetCurrentCulture(); | ||
115 | 120 | ||
116 | while (InventoryDeQueueAndDelete()) | 121 | while (InventoryDeQueueAndDelete()) |
117 | { | 122 | { |