Bug 1437996 - Remove verbose timer shutdown warning. r=froydnj
authorEric Rahm <erahm@mozilla.com>
Sat, 26 Jan 2019 14:27:27 -0800
changeset 515580 fa3703a234d571a499084a641c9fbf6de948e7df
parent 515579 2d2647957a09b9f573042b9b360c7add381b9e3d
child 515581 925fed5e69e79afad6fd9425a5261be3b26d7275
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1437996
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1437996 - Remove verbose timer shutdown warning. r=froydnj
xpcom/threads/nsTimerImpl.cpp
--- a/xpcom/threads/nsTimerImpl.cpp
+++ b/xpcom/threads/nsTimerImpl.cpp
@@ -291,17 +291,17 @@ nsresult nsTimerImpl::InitCommon(uint32_
   return InitCommon(TimeDuration::FromMilliseconds(aDelayMS), aType,
                     std::move(aNewCallback));
 }
 
 nsresult nsTimerImpl::InitCommon(const TimeDuration& aDelay, uint32_t aType,
                                  Callback&& newCallback) {
   mMutex.AssertCurrentThreadOwns();
 
-  if (NS_WARN_IF(!gThread)) {
+  if (!gThread) {
     return NS_ERROR_NOT_INITIALIZED;
   }
 
   if (!mEventTarget) {
     NS_ERROR("mEventTarget is NULL");
     return NS_ERROR_NOT_INITIALIZED;
   }