diff options
| -rw-r--r-- | Swiften/Session/BasicSessionStream.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Swiften/Session/BasicSessionStream.cpp b/Swiften/Session/BasicSessionStream.cpp index 183b986..3e65640 100644 --- a/Swiften/Session/BasicSessionStream.cpp +++ b/Swiften/Session/BasicSessionStream.cpp | |||
| @@ -120,7 +120,7 @@ void BasicSessionStream::addTLSEncryption() { | |||
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | bool BasicSessionStream::isTLSEncrypted() { | 122 | bool BasicSessionStream::isTLSEncrypted() { |
| 123 | return streamStack->getLayer<TLSLayer>() != nullptr; | 123 | return streamStack->getLayer<TLSLayer>(); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | Certificate::ref BasicSessionStream::getPeerCertificate() const { | 126 | Certificate::ref BasicSessionStream::getPeerCertificate() const { |
| @@ -144,8 +144,7 @@ bool BasicSessionStream::supportsZLibCompression() { | |||
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | void BasicSessionStream::addZLibCompression() { | 146 | void BasicSessionStream::addZLibCompression() { |
| 147 | auto compressionLayer = std::make_unique<CompressionLayer>(); | 147 | streamStack->addLayer(std::make_unique<CompressionLayer>()); |
| 148 | streamStack->addLayer(std::move(compressionLayer)); | ||
| 149 | } | 148 | } |
| 150 | 149 | ||
| 151 | void BasicSessionStream::setWhitespacePingEnabled(bool enabled) { | 150 | void BasicSessionStream::setWhitespacePingEnabled(bool enabled) { |
Swift