SolaceSamples / solace-samples-c

Getting Started Samples for the Solace C API.
http://dev.solace.com/get-started/c-tutorials/
Apache License 2.0
22 stars 21 forks source link

TopicSubscriber.c using incorrect arg for unsubscribe #34

Closed sshanks-kx closed 4 years ago

sshanks-kx commented 4 years ago

See difference between sub and unsub calls, in relation to the topic

    solClient_session_topicSubscribeExt ( session_p,
                                          SOLCLIENT_SUBSCRIBE_FLAGS_WAITFORCONFIRM,
                                          argv[5] );
    solClient_session_topicUnsubscribeExt ( session_p,
                                            SOLCLIENT_SUBSCRIBE_FLAGS_WAITFORCONFIRM,
                                            argv[4] );

The unsub appears to be using the password argument instead of the topic argument.

sshanks-kx commented 4 years ago

Created pull request for possible fix. See above. Thanks.