From ab159c56bf085f5e604ccfeb34cb7192c5805cc7 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Sun, 5 May 2024 22:21:50 -0400 Subject: [PATCH] Fix for derived hiding warning on suspend(). --- include/bitcoin/network/p2p.hpp | 2 +- src/p2p.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bitcoin/network/p2p.hpp b/include/bitcoin/network/p2p.hpp index b6ec731c3..a51e0a049 100644 --- a/include/bitcoin/network/p2p.hpp +++ b/include/bitcoin/network/p2p.hpp @@ -113,7 +113,7 @@ class BCT_API p2p /// ----------------------------------------------------------------------- /// Suspend/resume all connections. - virtual void suspend() NOEXCEPT; + virtual void suspend(const code& ec) NOEXCEPT; virtual void resume() NOEXCEPT; /// Properties. diff --git a/src/p2p.cpp b/src/p2p.cpp index d427b0b70..153e18e86 100644 --- a/src/p2p.cpp +++ b/src/p2p.cpp @@ -395,7 +395,7 @@ void p2p::resume_connectors() NOEXCEPT connect_suspended_.store(false); } -void p2p::suspend() NOEXCEPT +void p2p::suspend(const code&) NOEXCEPT { suspend_acceptors(); suspend_connectors();