libnmdc: clear fullbuffer prior to connection attempt

This commit is contained in:
mappu 2016-04-03 18:36:46 +12:00
parent d391159abe
commit 4499c7306d
1 changed files with 2 additions and 0 deletions

View File

@ -333,6 +333,8 @@ func (this *HubConnection) worker() {
// If we're not connected, attempt reconnect
if this.conn == nil {
fullBuffer = "" // clear
if this.Hco.Address.IsSecure() {
this.conn, err = tls.Dial("tcp", this.Hco.Address.GetHostOnly(), &tls.Config{
InsecureSkipVerify: this.Hco.SkipVerifyTLS,