Merge pull request #7004 from Icinga/bugfix/logrotate-6737

Timer::TimerThreadProc(): use C++11 lambda instead of bind()
This commit is contained in:
Michael Friedrich 2019-04-24 11:52:16 +02:00 committed by GitHub
commit f923ee34fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,6 +310,6 @@ void Timer::TimerThreadProc()
lock.unlock();
/* Asynchronously call the timer. */
Utility::QueueAsyncCallback(std::bind(&Timer::Call, timer));
Utility::QueueAsyncCallback([timer]() { timer->Call(); });
}
}