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

View File

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