Commit a828516a authored by Dominik Charousset's avatar Dominik Charousset

Check for `unique` in `get_detached`

parent dc768236
......@@ -74,6 +74,7 @@ message_data* message_data::ptr::get_detached() {
if (!p->unique()) {
auto np = p->copy();
m_ptr.reset(np);
CAF_REQUIRE(np->unique());
return np;
}
return p;
......
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