Commit 0f1eb55f authored by Matthieu Dorier's avatar Matthieu Dorier

corrected bug where finalize callback isn't pushed if engine is initialized with a margo instance

parent 41cfa63c
......@@ -206,6 +206,8 @@ public:
m_mid = mid;
m_is_server = (mode == THALLIUM_SERVER_MODE);
m_owns_mid = false;
margo_push_finalize_callback(m_mid,
&engine::on_finalize_cb, static_cast<void*>(this));
}
/**
......@@ -217,6 +219,8 @@ public:
m_mid = mid;
m_owns_mid = false;
m_is_server = margo_is_listening(mid);
margo_push_finalize_callback(m_mid,
&engine::on_finalize_cb, static_cast<void*>(this));
}
/**
......
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