add tmp buffer to store messages until the log file is ready

This commit is contained in:
2019-07-13 16:48:05 +02:00
parent 0f208ced60
commit d7386cdfa9
2 changed files with 29 additions and 6 deletions

View File

@@ -17,7 +17,10 @@ public:
bool m_running = false;
bool m_error = false;
std::thread m_thread;
std::mutex m_mutex;
BlockingQueue<std::string> m_mq;
// Store messages until the file is open
std::vector<std::string> m_tmp;
CURL *curl = nullptr;
CURLcode res;
std::string readBuffer;