mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Proper handling of failing to bind server socket
This commit is contained in:
parent
d1d83d7e7f
commit
618314985d
4 changed files with 51 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue