diff options
author | NicoleYarroch <nicole@livio.io> | 2018-08-16 08:54:52 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2018-08-16 08:54:52 -0400 |
commit | 50bb24d60702abe875979243b0a6ee4e0bfc8735 (patch) | |
tree | abf9d77932793488d49670dd4df6d00b21335278 | |
parent | 65ab1f57864ea9e610496455b8995d74e434fd67 (diff) | |
download | sdl_ios-50bb24d60702abe875979243b0a6ee4e0bfc8735.tar.gz |
Refactored setting upload attempts in the file manager
Signed-off-by: NicoleYarroch <nicole@livio.io>
-rw-r--r-- | SmartDeviceLink/SDLFileManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLFileManager.m b/SmartDeviceLink/SDLFileManager.m index a3cb03eea..717660f47 100644 --- a/SmartDeviceLink/SDLFileManager.m +++ b/SmartDeviceLink/SDLFileManager.m @@ -85,8 +85,8 @@ SDLFileManagerState *const SDLFileManagerStateStartupError = @"StartupError"; _stateMachine = [[SDLStateMachine alloc] initWithTarget:self initialState:SDLFileManagerStateShutdown states:[self.class sdl_stateTransitionDictionary]]; _failedFileUploadsCount = [NSMutableDictionary dictionary]; - _maxFileUploadAttempts = configuration.fileRetryCount ? configuration.fileRetryCount + 1 : 1; - _maxArtworkUploadAttempts = configuration.artworkRetryCount ? configuration.artworkRetryCount + 1 : 1; + _maxFileUploadAttempts = configuration.fileRetryCount + 1; + _maxArtworkUploadAttempts = configuration.artworkRetryCount + 1; return self; } |