Stopping a service results in X::AdHoc produced by Net::ZMQ::poll_one because of a closed socket.
Polling threads started by Cro::ZeroMQ::Source::Impure and Cro::ZeroMQ::Source::Pure are not always ready to accept messages by the time the first ones are submitted. It was breaking t/zeromq-xpub-xsub.t test.
This PR solves two problems:
X::AdHoc
produced byNet::ZMQ::poll_one
because of a closed socket.Cro::ZeroMQ::Source::Impure
andCro::ZeroMQ::Source::Pure
are not always ready to accept messages by the time the first ones are submitted. It was breaking t/zeromq-xpub-xsub.t test.