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();