Skip to content

Commit

Permalink
Make p2p::suspend a void fn.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed May 16, 2024
1 parent ce94b9d commit abef9ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/bitcoin/network/p2p.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/p2p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abef9ef

Please sign in to comment.