From 442036fa8eeb331a728f51671ba43c2813a4a7d4 Mon Sep 17 00:00:00 2001
From: gareth
Date: Sat, 3 Mar 2007 00:56:00 +0000
Subject: Lock the world so we don't cause nastiness and crashes

---
 src/world/World.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src')

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
 	}
 	
 	public void DoStuff() {
-		physics.DoStuff(this);
-		this.Update();
+		lock(this) {
+			physics.DoStuff(this);
+			this.Update();
+		}
 	}
 
 	public void Update() {
-- 
cgit v1.1