Reset isSecure in StartTLS()

This commit is contained in:
rcorniere 2020-03-10 17:14:26 +01:00
parent 1e92089f96
commit f1331dcebc

View File

@ -93,6 +93,7 @@ func (t *XMPPTransport) StartTLS() error {
return err return err
} }
t.isSecure = false
t.conn = tlsConn t.conn = tlsConn
t.readWriter = newStreamLogger(tlsConn, t.logFile) t.readWriter = newStreamLogger(tlsConn, t.logFile)
t.decoder = xml.NewDecoder(bufio.NewReaderSize(t.readWriter, maxPacketSize)) t.decoder = xml.NewDecoder(bufio.NewReaderSize(t.readWriter, maxPacketSize))