Commit 37b5b5c6 authored by Dominik Charousset's avatar Dominik Charousset

Remove overly strict assert

parent 961dfe79
......@@ -40,7 +40,6 @@ std::unique_ptr<client> client::make(handshake_ptr hs, upper_layer_ptr up) {
error client::init(socket_manager* owner, stream_oriented::lower_layer* down,
const settings& cfg) {
CAF_ASSERT(owner != nullptr);
CAF_ASSERT(hs_ != nullptr);
framing_.init(owner, down);
if (!hs_->has_mandatory_fields())
......
......@@ -24,7 +24,6 @@ std::unique_ptr<server> server::make(upper_layer_ptr up) {
error server::init(socket_manager* owner, stream_oriented::lower_layer* down,
const settings& cfg) {
CAF_ASSERT(owner != nullptr);
framing_.init(owner, down);
owner_ = owner;
cfg_ = cfg;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment