Update Logger.cpp

This commit is contained in:
u6th9d 2018-10-09 20:42:34 +08:00 committed by GitHub
parent 3c2a53d58f
commit 885fb4eca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ LogUnit* Logger::getLogUnit()
}
} else {
std::unique_lock<std::mutex> lck(mMtx);
while (true) {
while (!mStop) {
if (!mFree.empty()) {
log = mFree.back();
mFree.resize(mFree.size() - 1);