aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index 4948b8ba1..0b4c67deb 100644
--- a/src/server.h
+++ b/src/server.h
@@ -545,6 +545,11 @@ public:
std::string getWorldPath(){ return m_path_world; }
+ void setAsyncFatalError(const std::string &error)
+ {
+ m_async_fatal_error.set(error);
+ }
+
private:
// con::PeerHandler implementation.
@@ -658,6 +663,9 @@ private:
// Equivalent of /usr/share/minetest/server
std::string m_path_share;
+ // Thread can set; step() will throw as ServerError
+ MutexedVariable<std::string> m_async_fatal_error;
+
// Some timers
float m_liquid_transform_timer;
float m_print_info_timer;