Skip to content

Commit

Permalink
Merge pull request libbitcoin#392 from evoskuil/master
Browse files Browse the repository at this point in the history
Fix for derived hiding warning on suspend().
  • Loading branch information
evoskuil authored May 6, 2024
2 parents 11891bd + ab159c5 commit bfb7b52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/bitcoin/network/p2p.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/p2p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bfb7b52

Please sign in to comment.