diff --git a/src/net.cpp b/src/net.cpp index 96e6a1adb11..9f0e28df42b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -112,7 +112,7 @@ static const uint64_t RANDOMIZER_ID_ADDRCACHE = 0x1cf2e4ddd306dda9ULL; // SHA256 // bool fDiscover = true; bool fListen = true; -RecursiveMutex g_maplocalhost_mutex; +Mutex g_maplocalhost_mutex; std::map mapLocalHost GUARDED_BY(g_maplocalhost_mutex); static bool vfLimited[NET_MAX] GUARDED_BY(g_maplocalhost_mutex) = {}; std::string strSubVersion; diff --git a/src/net.h b/src/net.h index 4b682b473ad..1f0ebedcf9a 100644 --- a/src/net.h +++ b/src/net.h @@ -230,7 +230,7 @@ struct LocalServiceInfo { uint16_t nPort; }; -extern RecursiveMutex g_maplocalhost_mutex; +extern Mutex g_maplocalhost_mutex; extern std::map mapLocalHost GUARDED_BY(g_maplocalhost_mutex); extern const std::string NET_MESSAGE_COMMAND_OTHER;