eqasim-org / synpp

Synthetic population pipeline code for eqasim
http://www.eqasim.org
MIT License
18 stars 12 forks source link

fix: Gracefully close zmq Context and Socket at progress server close #72

Closed ainar closed 2 years ago

ainar commented 2 years ago

When using progress, I sometimes have this warning: ResourceWarning: Unclosed socket <zmq.Socket(zmq.PULL)

I suggest gracefully closing the socket and the context of ZMQ at the close of the progress context.

sebhoerl commented 2 years ago

Interesting, never saw this before, thanks!