diff --git a/include/bitcoin/network/p2p.hpp b/include/bitcoin/network/p2p.hpp index cc192e235..03c663f6a 100644 --- a/include/bitcoin/network/p2p.hpp +++ b/include/bitcoin/network/p2p.hpp @@ -115,8 +115,8 @@ class BCT_API p2p /// Network connections are suspended (incoming and/or outgoing). virtual bool suspended() const NOEXCEPT; - /// Suspend all connections (echos parameter). - virtual code suspend(const code& ec) NOEXCEPT; + /// Suspend all connections. + virtual void suspend(const code& ec) NOEXCEPT; /// Resume all connection. virtual void resume() NOEXCEPT; diff --git a/src/p2p.cpp b/src/p2p.cpp index 2df269380..6c6f7ea18 100644 --- a/src/p2p.cpp +++ b/src/p2p.cpp @@ -418,11 +418,10 @@ void p2p::resume_connectors() NOEXCEPT connect_suspended_.store(false); } -code p2p::suspend(const code& ec) NOEXCEPT +void p2p::suspend(const code&) NOEXCEPT { suspend_acceptors(); suspend_connectors(); - return ec; } void p2p::resume() NOEXCEPT