reset isSecure

This commit is contained in:
xinfei.wu 2020-03-09 00:22:14 +08:00 committed by GitHub
parent 22ba8d1f4e
commit 431209f3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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