Added small fix for reconnect code not working reliably with TLS connections.
Merge pull request #1 from wolfeidau/master

Added small fix for reconnect code not working reliably with TLS connect...