Bug 749229: Remove unnecessary assertion about unsigned value being >=0, in nsEventSource::SetReconnectionTimeout. r=smaug
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 26 Apr 2012 09:42:28 -0700
changeset 92526 99e08b80045895134facaac2867b205e9749da64
parent 92525 bafdd54189eef35f1cb9ed4fc2cde2c5dccacaf7
child 92527 88fc9ee1334b4617757429603bbaec0881f0797b
push id22544
push useremorley@mozilla.com
push dateFri, 27 Apr 2012 11:53:27 +0000
treeherdermozilla-central@d871849ac3a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs749229
milestone15.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 749229: Remove unnecessary assertion about unsigned value being >=0, in nsEventSource::SetReconnectionTimeout. r=smaug
content/base/src/nsEventSource.cpp
--- a/content/base/src/nsEventSource.cpp
+++ b/content/base/src/nsEventSource.cpp
@@ -1105,17 +1105,16 @@ nsEventSource::SetReconnectionTimeout()
   }
 
   // the timer will be used whenever the requests are going finished.
   if (!mTimer) {
     mTimer = do_CreateInstance("@mozilla.org/timer;1");
     NS_ENSURE_STATE(mTimer);
   }
 
-  NS_ASSERTION(mReconnectionTime >= 0, "mReconnectionTime lies");
   nsresult rv = mTimer->InitWithFuncCallback(TimerCallback, this,
                                              mReconnectionTime,
                                              nsITimer::TYPE_ONE_SHOT);
   NS_ENSURE_SUCCESS(rv, rv);
 
   return NS_OK;
 }