File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Sources/RoyalVNCKit/SDK/Connection Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ public final class VNCConnection: NSObjectOrAnyObject {
4949 attributes: . concurrent)
5050
5151 private let sharedZStream : ZlibStream
52+ private let sharedZRLEZStream : ZlibStream
5253
5354 // MARK: - Internal Properties
5455 let taskPriority = TaskPriority . high
@@ -101,7 +102,7 @@ public final class VNCConnection: NSObjectOrAnyObject {
101102 VNCFrameEncodingType . copyRect. rawValue: VNCProtocol . CopyRectEncoding ( ) ,
102103 VNCFrameEncodingType . tight. rawValue: VNCProtocol . TightEncoding ( ) ,
103104 VNCFrameEncodingType . zlib. rawValue: VNCProtocol . ZlibEncoding ( zStream: sharedZStream) ,
104- VNCFrameEncodingType . zrle. rawValue: VNCProtocol . ZRLEEncoding ( zStream: sharedZStream ) ,
105+ VNCFrameEncodingType . zrle. rawValue: VNCProtocol . ZRLEEncoding ( zStream: sharedZRLEZStream ) ,
105106 VNCFrameEncodingType . hextile. rawValue: hextileEncoding,
106107 VNCFrameEncodingType . coRRE. rawValue: VNCProtocol . RREEncoding ( ) ,
107108 VNCFrameEncodingType . rre. rawValue: VNCProtocol . RREEncoding ( ) ,
@@ -200,7 +201,9 @@ public final class VNCConnection: NSObjectOrAnyObject {
200201
201202 self . logger = logger
202203 self . context = context
204+
203205 self . sharedZStream = . init( )
206+ self . sharedZRLEZStream = . init( )
204207
205208 let clipboard = VNCClipboard ( )
206209
You can’t perform that action at this time.
0 commit comments