Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AmqpSend.java #38

Closed
wants to merge 2 commits into from
Closed

Conversation

enuysa-msft
Copy link
Contributor

Fix for Cloud 2 Device client hanging and doesn't throw any error when the connection string is incorrect

#11

Fix for Cloud 2 Device client hanging and doesn't throw any error when the connection string is incorrect 

Azure#11
@msftclas
Copy link

Hi @enuysa-msft, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@@ -112,8 +112,14 @@ public void send(String deviceId, Message message) throws IOException
amqpSendHandler.createProtonMessage(deviceId, message);
// Codes_SRS_SERVICE_SDK_JAVA_AMQPSEND_12_007: [The function shall initialize the Proton reactor object]
this.reactor = Proton.reactor(this);
// Codes_SRS_SERVICE_SDK_JAVA_AMQPSEND_12_008: [The function shall start the Proton reactor object]
this.reactor.run();
// Codes_SRS_SERVICE_SDK_JAVA_AMQPSEND_12_008: [The function shall start the Proton reactor object]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to move the try around this whole block not just run.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@prmathur-microsoft: Moved the try around this whole block

@prmathur-microsoft
Copy link
Member

Your PR is checked in @commit 8c017a8 after squashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants