mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Improve error handling of map database creation
This commit is contained in:
parent
7abaa8d4cd
commit
d54646d342
7 changed files with 71 additions and 32 deletions
|
@ -707,6 +707,8 @@ void *EmergeThread::run()
|
|||
{
|
||||
ScopeProfiler sp(g_profiler, "EmergeThread: load block - async (sum)");
|
||||
MutexAutoLock dblock(m_db.mutex);
|
||||
// Note: this can throw an exception, but there isn't really
|
||||
// a good, safe way to handle it.
|
||||
m_db.loadBlock(pos, databuf);
|
||||
}
|
||||
// actually load it, then decide again
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue