Fixed crash when remote logging is disabled
This commit is contained in:
parent
20e7d62ec7
commit
e48436cc91
1 changed files with 6 additions and 6 deletions
|
@ -85,17 +85,17 @@ std::string RemoteLog::getRows()
|
||||||
{
|
{
|
||||||
std::stringstream data;
|
std::stringstream data;
|
||||||
|
|
||||||
|
if (m_self) {
|
||||||
uv_mutex_lock(&m_self->m_mutex);
|
uv_mutex_lock(&m_self->m_mutex);
|
||||||
|
|
||||||
if (m_self) {
|
|
||||||
for (auto& m_row : m_self->m_rows) {
|
for (auto& m_row : m_self->m_rows) {
|
||||||
data << m_row.c_str();
|
data << m_row.c_str();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
m_self->m_rows.clear();
|
m_self->m_rows.clear();
|
||||||
|
|
||||||
uv_mutex_unlock(&m_self->m_mutex);
|
uv_mutex_unlock(&m_self->m_mutex);
|
||||||
|
}
|
||||||
|
|
||||||
return data.str();
|
return data.str();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue