Create a new stream after StartTLS

This commit is contained in:
Wichert Akkerman
2019-10-25 15:22:01 +02:00
committed by Mickaël Rémond
parent 390f9b065e
commit 33446ad0ba
7 changed files with 55 additions and 26 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ func (s *Session) startTlsIfSupported(o Config) {
return
}
s.err = s.transport.StartTLS()
s.StreamId, s.err = s.transport.StartTLS()
if s.err == nil {
s.TlsEnabled = true