pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.17k stars 163 forks source link

added defer to mdcli2 ConnectToBroker() #140

Closed tdonovic closed 5 years ago

tdonovic commented 5 years ago

When trying to use mdcli2 api, it doesn't work. There is no defer close, so the socket is closed too early and no messages are sent. Adding this fixes the issue and makes the example code work again.

tdonovic commented 5 years ago

Need to do more testing