mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
fixed crash for Windows
This commit is contained in:
parent
a8acb8ebb4
commit
f7791e5289
1 changed files with 3 additions and 0 deletions
3
Log.cpp
3
Log.cpp
|
@ -20,8 +20,11 @@ void LogMsg::Process()
|
||||||
|
|
||||||
void Log::Flush ()
|
void Log::Flush ()
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
if (m_LogFile)
|
if (m_LogFile)
|
||||||
m_LogFile->flush();
|
m_LogFile->flush();
|
||||||
|
#endif
|
||||||
|
// TODO: find out what's wrong with flush for Windows
|
||||||
}
|
}
|
||||||
|
|
||||||
void Log::SetLogFile (const std::string& fullFilePath)
|
void Log::SetLogFile (const std::string& fullFilePath)
|
||||||
|
|
Loading…
Add table
Reference in a new issue