mirror of
https://github.com/QuantumPackage/qp2.git
synced 2025-01-03 10:05:52 +01:00
Clean ZMQ termination
This commit is contained in:
parent
b749313762
commit
13995ab02b
@ -885,7 +885,9 @@ let run ~port =
|
|||||||
|
|
||||||
Zmq.Socket.send pair_socket @@ string_of_pub_state Stopped;
|
Zmq.Socket.send pair_socket @@ string_of_pub_state Stopped;
|
||||||
Thread.join pub_thread;
|
Thread.join pub_thread;
|
||||||
Zmq.Socket.close rep_socket
|
Zmq.Socket.close pair_socket;
|
||||||
|
Zmq.Socket.close rep_socket;
|
||||||
|
Zmq.Context.terminate zmq_context
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user