Commit d4e89a6f authored by Kershaw Chang's avatar Kershaw Chang
Browse files

Bug 1701425 - Make nsPACMan::mLoadFailureCount atomic, r=necko-reviewers,valentin

parent 0dba6b63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -729,7 +729,7 @@ void nsPACMan::OnLoadFailure() {
  mScheduledReload = TimeStamp::Now() + TimeDuration::FromSeconds(interval);

  LOG(("OnLoadFailure: retry in %d seconds (%d fails)\n", interval,
       mLoadFailureCount));
       (uint32_t)mLoadFailureCount));

  // while we wait for the retry queued members should try direct
  // even if that means fast failure.
+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ class nsPACMan final : public nsIStreamLoaderObserver,
  bool mLoadPending;
  Atomic<bool, Relaxed> mShutdown;
  TimeStamp mScheduledReload;
  uint32_t mLoadFailureCount;
  Atomic<uint32_t, Relaxed> mLoadFailureCount;

  bool mInProgress;
  bool mIncludePath;