Commit 077c4882 authored by Matthieu Dorier's avatar Matthieu Dorier

added finalization by default in client engines

parent 49e3a62a
......@@ -181,8 +181,12 @@ public:
* @brief Destructor.
*/
~engine() throw(margo_exception) {
if(m_is_server && m_owns_mid) {
margo_wait_for_finalize(m_mid);
if(m_owns_mid) {
if(m_is_server) {
margo_wait_for_finalize(m_mid);
} else {
margo_finalize(m_mid);
}
}
}
......
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