Merge pull request #3574 from peat-psuwit/for-upstream/zmdb-thread-init

db: start the processing thread after all fields are initialized
pull/3609/head
Isaac Connor 2022-08-13 16:02:14 -04:00 committed by Isaac Connor
parent bf661d2186
commit fc2e5aa135
1 changed files with 3 additions and 2 deletions

View File

@ -229,9 +229,10 @@ zmDbRow::~zmDbRow() {
}
zmDbQueue::zmDbQueue() :
mThread(&zmDbQueue::process, this),
mTerminate(false)
{ }
{
mThread = std::thread(&zmDbQueue::process, this);
}
zmDbQueue::~zmDbQueue() {
stop();