Commit 02ab9698 authored by Dominik Charousset's avatar Dominik Charousset

Remove over-zealous assertion

The `buf_` member in `from_resource` may be non-null if initializing the
object in `subscribe` fails with an exception.
parent cec81950
...@@ -35,10 +35,6 @@ public: ...@@ -35,10 +35,6 @@ public:
} }
~from_resource_sub() { ~from_resource_sub() {
// The buffer points back to this object as consumer, so this cannot be
// destroyed unless we have called buf_->cancel(). All code paths that do
// call cancel() on the buffer also must set the variable to `nullptr`.
CAF_ASSERT(buf_ == nullptr);
ctx_->deref_execution_context(); ctx_->deref_execution_context();
} }
......
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