diff options
Diffstat (limited to 'src/zmq_engine.cpp')
-rw-r--r-- | src/zmq_engine.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zmq_engine.cpp b/src/zmq_engine.cpp index de26b27..6551bc3 100644 --- a/src/zmq_engine.cpp +++ b/src/zmq_engine.cpp @@ -87,6 +87,12 @@ void zmq::zmq_engine_t::unplug () inout = NULL; } +void zmq::zmq_engine_t::terminate () +{ + unplug (); + delete this; +} + void zmq::zmq_engine_t::in_event () { bool disconnection = false; |