Skip to content

Commit cd73a31

Browse files
committed
Add missing stop() override to protocol_bitcoind_rpc.
1 parent da32bc1 commit cd73a31

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/bitcoin/node/protocols/protocol_bitcoind_rpc.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class BCN_API protocol_bitcoind_rpc
4747

4848
/// Public start is required.
4949
void start() NOEXCEPT override;
50+
void stopping(const code& ec) NOEXCEPT override;
5051

5152
protected:
5253
using post = network::http::method::post;

src/protocols/protocol_bitcoind_rpc.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ void protocol_bitcoind_rpc::start() NOEXCEPT
7070
protocol_http::start();
7171
}
7272

73+
void protocol_bitcoind_rpc::stopping(const code& ec) NOEXCEPT
74+
{
75+
BC_ASSERT(stranded());
76+
rpc_dispatcher_.stop(ec);
77+
protocol_http::stopping(ec);
78+
}
79+
7380
// Dispatch.
7481
// ----------------------------------------------------------------------------
7582

0 commit comments

Comments
 (0)