зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1590135 - Don't call stop in AsyncLogger destructor. r=pehrsons
It does not achieve anything and crashes if the log module manager hasn't been initialized. Differential Revision: https://phabricator.services.mozilla.com/D49958 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c92f1fd819
Коммит
bbea791d3f
|
@ -183,12 +183,6 @@ class AsyncLogger {
|
|||
explicit AsyncLogger(const char* aLogModuleName)
|
||||
: mThread(nullptr), mLogModule(aLogModuleName), mRunning(false) {}
|
||||
|
||||
~AsyncLogger() {
|
||||
if (Enabled()) {
|
||||
Stop();
|
||||
}
|
||||
}
|
||||
|
||||
void Start() {
|
||||
MOZ_ASSERT(!mRunning, "Double calls to AsyncLogger::Start");
|
||||
if (Enabled()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче