mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-21 01:52:01 -08:00
Merge pull request #158 from remicorniere/reset_IsSecure
Reset isSecure in StartTLS()
This commit is contained in:
commit
64e54134df
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user