Skip to content

Commit

Permalink
Move recreateDataEncoderWith method call to setOptions_nosync body
Browse files Browse the repository at this point in the history
`setOptions_nosync` is called from other classes that inherit `ARTChannel` class
  • Loading branch information
lukasz-szyszkowski committed Nov 4, 2021
1 parent 2cd5aa8 commit d370c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ARTChannel.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ - (ARTChannelOptions *)options_nosync {
- (void)setOptions:(ARTChannelOptions *)options {
dispatch_sync(_queue, ^{
[self setOptions_nosync:options];
[self recreateDataEncoderWith:options.cipher];
});
}

- (void)setOptions_nosync:(ARTChannelOptions *)options {
_options = options;
[self recreateDataEncoderWith:options.cipher];
}

- (void)recreateDataEncoderWith:(ARTCipherParams*)cipher {
Expand Down

0 comments on commit d370c10

Please sign in to comment.