mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-21 19:13:29 +01:00
Clean ZMQ termination
This commit is contained in:
parent
a0e55498da
commit
7239f5a5b8
@ -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