Commit b75c0a6d authored by Joseph Noir's avatar Joseph Noir

Fix to avoid msg copy

parent 193319d7
...@@ -43,7 +43,7 @@ abstract_channel::~abstract_channel() { ...@@ -43,7 +43,7 @@ abstract_channel::~abstract_channel() {
} }
void abstract_channel::enqueue(mailbox_element_ptr what, execution_unit* host) { void abstract_channel::enqueue(mailbox_element_ptr what, execution_unit* host) {
enqueue(what->sender, what->mid, what->msg, host); enqueue(what->sender, what->mid, std::move(what->msg), host);
} }
bool abstract_channel::is_remote() const { bool abstract_channel::is_remote() const {
......
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