miwee/stomp_client

StompClient hangs on [error] :closed

Closed this issue · 1 comments

Hi,

I've been using the supervised stomp client example for a while already, and I've noticed that after a few activemq start/stop cycles I get an error message when calling StompClient.subscribe/3.

[error] :closed

To clarify, when this happens StompClient.connect/2 does return a pid, but no "connected" message shows that it was a successful connection. When I try to subscribe to a topic using that connection I get the message above.
Any ideas? What information should I add to the issue?

Thanks!

I have got it working by placing the call to StompClient.subscribe/3 in the on_connect callback handler.