qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: QPID Proton 0.19 Python: Exit MessagingHandler.run()
Date Thu, 22 Feb 2018 10:16:09 GMT
The container is single-threaded, so invoking methods on it from another 
thread is not safe (it would be nice if close() were an exception here, 
but I guess it is not).

What you can do is inject an application defined event into the loop to 
do the shutdown. E.g. as in attached modification to your example.

View raw message