mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
Improve error handling of map database creation
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user