Fixed crash when remote logging is disabled

This commit is contained in:
Ben Gräf 2019-02-16 19:37:53 +01:00
parent 20e7d62ec7
commit e48436cc91

View file

@ -85,17 +85,17 @@ std::string RemoteLog::getRows()
{
std::stringstream data;
if (m_self) {
uv_mutex_lock(&m_self->m_mutex);
if (m_self) {
for (auto& m_row : m_self->m_rows) {
data << m_row.c_str();
}
}
m_self->m_rows.clear();
uv_mutex_unlock(&m_self->m_mutex);
}
return data.str();
}