mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 18:13:46 +01:00
Revert "Server::step throw is never catched. Replace it with an errorstream + assert"
This reverts commit 5f8e48c63baf12930430d5d8fc07495021599e61.
This commit is contained in:
parent
ceac41ed6e
commit
699d42efc6
@ -479,13 +479,10 @@ void Server::step(float dtime)
|
|||||||
JMutexAutoLock lock(m_step_dtime_mutex);
|
JMutexAutoLock lock(m_step_dtime_mutex);
|
||||||
m_step_dtime += dtime;
|
m_step_dtime += dtime;
|
||||||
}
|
}
|
||||||
// Assert if fatal error occurred in thread
|
// Throw if fatal error occurred in thread
|
||||||
std::string async_err = m_async_fatal_error.get();
|
std::string async_err = m_async_fatal_error.get();
|
||||||
if(async_err != "") {
|
if(async_err != ""){
|
||||||
errorstream << "UNRECOVERABLE error occurred. Stopping server. "
|
throw ServerError(async_err);
|
||||||
<< "Please fix the following error:" << std::endl
|
|
||||||
<< async_err << std::endl;
|
|
||||||
assert(false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user