Skip to content

Commit bc1c7f6

Browse files
committed
Assert stranded, add protocol_ws::stopping.
1 parent 25d866c commit bc1c7f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/bitcoin/node/protocols/protocol_ws.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,16 @@ class BCN_API protocol_ws
5151
/// Public start is required.
5252
inline void start() NOEXCEPT override
5353
{
54+
BC_ASSERT(stranded());
5455
network::protocol_ws::start();
5556
}
5657

58+
inline void stopping(const code& ec) NOEXCEPT override
59+
{
60+
BC_ASSERT(stranded());
61+
network::protocol_ws::stopping(ec);
62+
}
63+
5764
private:
5865
// This is thread safe.
5966
////const options_t& options_;

0 commit comments

Comments
 (0)