Browse Source

fNetworkActive is not protected by a lock, use an atomic

0.14
Jonas Schnelli 8 years ago
parent
commit
079142b757
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 2
      src/net.h

2
src/net.h

@ -403,7 +403,7 @@ private: @@ -403,7 +403,7 @@ private:
unsigned int nReceiveFloodSize;
std::vector<ListenSocket> vhListenSocket;
bool fNetworkActive;
std::atomic<bool> fNetworkActive;
banmap_t setBanned;
CCriticalSection cs_setBanned;
bool setBannedIsDirty;

Loading…
Cancel
Save