Merge pull request #158 from remicorniere/reset_IsSecure

Reset isSecure in StartTLS()
This commit is contained in:
remicorniere 2020-03-10 16:16:49 +00:00 committed by GitHub
commit 64e54134df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))