Commit bb2f6119 authored by Lucas Russo's avatar Lucas Russo

dev_io/dev_io_core.c: fix duplicate destroy on zactor PIPE

We don't need to destroy zactor PIPE sockets,
as CZMQ zactor infrastructure already does this.
parent dfc97063
......@@ -378,11 +378,11 @@ devio_err_e devio_destroy (devio_t **self_p)
zsock_destroy (&self->pipe_backend);
zsock_destroy (&self->pipe_frontend);
if (self->pipe) {
DBE_DEBUG (DBG_DEV_IO | DBG_LVL_INFO,
"[dev_io_core:destroy] Destroying DEVIO pipe\n");
zsock_destroy(&self->pipe);
}
/* Do not destroy PIPE as CZMQ actor thread will do it.
* See github issue #116 (https://github.com/lnls-dig/bpm-sw/issues/116)
*
* zsock_destroy(&self->pipe);
* */
/* Destroy all remamining sockets if any */
DBE_DEBUG (DBG_DEV_IO | DBG_LVL_INFO,
......
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