amenzhinsky / iothub

Azure IoT Hub SDK for Golang
MIT License
51 stars 57 forks source link

Fix connection leak #3

Closed whywaita closed 5 years ago

whywaita commented 5 years ago

connectToEventHub function open two AMQP connection

But, It doesn't look like the first one gets closed on the success path. This PR divides the variables.

See also: https://github.com/vcabbage/amqp/issues/115#issuecomment-408702364

amenzhinsky commented 5 years ago

Thank you!