diff options
author | gareth | 2007-03-03 00:56:00 +0000 |
---|---|---|
committer | gareth | 2007-03-03 00:56:00 +0000 |
commit | 442036fa8eeb331a728f51671ba43c2813a4a7d4 (patch) | |
tree | 233468a13e64b297a355743f76fcbc0659519951 /src/world | |
parent | We have a main update loop! (diff) | |
download | opensim-SC_OLD-442036fa8eeb331a728f51671ba43c2813a4a7d4.zip opensim-SC_OLD-442036fa8eeb331a728f51671ba43c2813a4a7d4.tar.gz opensim-SC_OLD-442036fa8eeb331a728f51671ba43c2813a4a7d4.tar.bz2 opensim-SC_OLD-442036fa8eeb331a728f51671ba43c2813a4a7d4.tar.xz |
Lock the world so we don't cause nastiness and crashes
Diffstat (limited to 'src/world')
-rw-r--r-- | src/world/World.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/world/World.cs b/src/world/World.cs index dd9b336..1fabca4 100644 --- a/src/world/World.cs +++ b/src/world/World.cs | |||
@@ -39,8 +39,10 @@ namespace OpenSim.world | |||
39 | } | 39 | } |
40 | 40 | ||
41 | public void DoStuff() { | 41 | public void DoStuff() { |
42 | physics.DoStuff(this); | 42 | lock(this) { |
43 | this.Update(); | 43 | physics.DoStuff(this); |
44 | this.Update(); | ||
45 | } | ||
44 | } | 46 | } |
45 | 47 | ||
46 | public void Update() { | 48 | public void Update() { |