Merge remote-tracking branch 'origin/master' into jerry-sandbox

This commit is contained in:
Jerry (Xinyu Hou)
2015-06-02 15:30:33 -07:00
3 changed files with 13 additions and 12 deletions

View File

@@ -95,6 +95,13 @@ IpcLogOutputter::show(bool showIfEmpty)
bool
IpcLogOutputter::write(ELevel, const char* text)
{
if (!m_ipcServer.hasClients(kIpcClientGui)) {
if (!m_buffer.empty()) {
m_buffer.clear();
}
return true;
}
// ignore events from the buffer thread (would cause recursion).
if (m_bufferThread != nullptr &&
Thread::getCurrentThread().getID() == m_bufferThreadId) {