Verified Commit c653329f authored by Randell Jesup's avatar Randell Jesup Committed by ma1
Browse files

Bug 2036928: Fix nsNotifyAddrListener mLinkUp/mStatusKnown data races (win32)...

Bug 2036928: Fix nsNotifyAddrListener mLinkUp/mStatusKnown data races (win32) r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D298422
parent b519cbc3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -44,8 +44,8 @@ class nsNotifyAddrListener : public nsINetworkLinkService,
                                   mozilla::SHA1Sum& sha1);

 protected:
  bool mLinkUp{true};  // assume true by default
  bool mStatusKnown{false};
  mozilla::Atomic<bool, mozilla::Relaxed> mLinkUp{true};
  mozilla::Atomic<bool, mozilla::Relaxed> mStatusKnown{false};
  bool mCheckAttempted{false};

  nsresult Shutdown(void);