From: Perttu Ahola Date: Fri, 14 Oct 2011 09:39:25 +0000 (+0300) Subject: Lock mutex when accessing m_env in Server::~Server X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=080002f8ed1af6d34cdc6f5abff0f51586ca831c;p=zefram%2Fminetest%2Fminetest_engine.git Lock mutex when accessing m_env in Server::~Server --- diff --git a/src/server.cpp b/src/server.cpp index 73df81dd..5b9903f5 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1139,19 +1139,23 @@ Server::~Server() {} } } + + { + JMutexAutoLock envlock(m_env_mutex); - /* - Save players - */ - dstream<<"Server: Saving players"<