From 4499c7306dbfeef350311370567b67cf7e5e154e Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 3 Apr 2016 18:36:46 +1200 Subject: [PATCH] libnmdc: clear fullbuffer prior to connection attempt --- src/libnmdc/libnmdc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libnmdc/libnmdc.go b/src/libnmdc/libnmdc.go index b18d510..5b28f5f 100644 --- a/src/libnmdc/libnmdc.go +++ b/src/libnmdc/libnmdc.go @@ -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,