Skip to content

Commit

Permalink
Fix for derived hiding warning on suspend().
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed May 6, 2024
1 parent 11891bd commit ab159c5
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 ab159c5

Please sign in to comment.