Skip to content

Commit 7b989f4

Browse files
authored
Crate retry strategy after fixing up device info (#158)
1 parent f0f01f0 commit 7b989f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/src/Client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,14 @@ STATUS createKinesisVideoClient(PDeviceInfo pDeviceInfo, PClientCallbacks pClien
221221
// Copy the structures in their entirety
222222
MEMCPY(&pKinesisVideoClient->clientCallbacks, pClientCallbacks, SIZEOF(ClientCallbacks));
223223

224-
CHK_STATUS(configureClientWithRetryStrategy(pKinesisVideoClient));
225-
226224
// Fix-up the defaults if needed
227225
// IMPORTANT!!! The calloc allocator will zero the memory which will also act as a
228226
// sentinel value in case of an earlier version of the structure
229227
// is used and the remaining fields are not copied
230228
fixupDeviceInfo(&pKinesisVideoClient->deviceInfo, pDeviceInfo);
231229

230+
CHK_STATUS(configureClientWithRetryStrategy(pKinesisVideoClient));
231+
232232
// Fix-up the name of the device if not specified
233233
if (pKinesisVideoClient->deviceInfo.name[0] == '\0') {
234234
createRandomName(pKinesisVideoClient->deviceInfo.name, DEFAULT_DEVICE_NAME_LEN, pKinesisVideoClient->clientCallbacks.getRandomNumberFn,

0 commit comments

Comments
 (0)