lib/0mq/context.rb in 0mq-0.1.2 vs lib/0mq/context.rb in 0mq-0.2.0

- old
+ new

@@ -9,10 +9,12 @@ end # Destroy the ØMQ context. def terminate if @ptr - rc = LibZMQ.zmq_ctx_term @ptr + rc = LibZMQ.version4? ? + LibZMQ.zmq_ctx_term(@ptr) : + LibZMQ.zmq_term(@ptr) ZMQ.error_check true if rc == -1 @ptr = nil end end