mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fixed minetest reliable udp implementation (compatible to old clients)
This commit is contained in:
@@ -93,6 +93,7 @@ static std::string get_lev_string(enum LogMessageLevel lev)
|
||||
|
||||
void log_printline(enum LogMessageLevel lev, const std::string &text)
|
||||
{
|
||||
log_threadnamemutex.Lock();
|
||||
std::string threadname = "(unknown thread)";
|
||||
std::map<threadid_t, std::string>::const_iterator i;
|
||||
i = log_threadnames.find(get_current_thread_id());
|
||||
@@ -108,6 +109,7 @@ void log_printline(enum LogMessageLevel lev, const std::string &text)
|
||||
out->printLog(os.str(), lev);
|
||||
out->printLog(lev, text);
|
||||
}
|
||||
log_threadnamemutex.Unlock();
|
||||
}
|
||||
|
||||
class Logbuf : public std::streambuf
|
||||
|
Reference in New Issue
Block a user