forked from qt-creator/qt-creator
Nanotrace: Shutdown should do nothing if not initialized
Change-Id: I717296da4c9aea1e9dd28db3421a927f6bb8d332 Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
This commit is contained in:
@@ -168,6 +168,9 @@ void init(const std::string &process, const std::string &thread, const std::stri
|
||||
|
||||
void shutdown()
|
||||
{
|
||||
if (!initEvent.initialized)
|
||||
return;
|
||||
|
||||
flush();
|
||||
|
||||
if (std::ofstream stream(initEvent.filePath, std::ios::app); stream.good())
|
||||
|
Reference in New Issue
Block a user