@@ -1931,7 +1931,9 @@ - (BOOL)isReplayableRequest:(BNCServerRequest *)request {
19311931
19321932- (void )processNextQueueItem {
19331933 dispatch_semaphore_wait (self.processing_sema , DISPATCH_TIME_FOREVER);
1934-
1934+
1935+ [[BranchLogger shared ] logVerbose: [NSString stringWithFormat: @" Processing next queue item. Network Count: %ld . Queue depth: %ld " , (long )self .networkCount, (long )self .requestQueue.queueDepth] error: nil ];
1936+
19351937 if (self.networkCount == 0 &&
19361938 self.requestQueue .queueDepth > 0 ) {
19371939
@@ -1943,10 +1945,11 @@ - (void)processNextQueueItem {
19431945
19441946 if (req) {
19451947
1946- // If tracking is disabled, then do not check for install event. It won't exist.
1948+ // If tracking is disabled, then do not check for install event. It won't exist.
19471949 if (!Branch.trackingDisabled ) {
19481950 if (![req isKindOfClass: [BranchInstallRequest class ]] && !self.preferenceHelper .randomizedBundleToken ) {
19491951 [[BranchLogger shared ] logError: @" User session has not been initialized!" error: nil ];
1952+ self.networkCount = 0 ;
19501953 BNCPerformBlockOnMainThreadSync (^{
19511954 [req processResponse: nil error: [NSError branchErrorWithCode: BNCInitError]];
19521955 });
@@ -1955,6 +1958,7 @@ - (void)processNextQueueItem {
19551958 } else if (![req isKindOfClass: [BranchOpenRequest class ]] &&
19561959 (!self.preferenceHelper .randomizedDeviceToken || !self.preferenceHelper .sessionID )) {
19571960 [[BranchLogger shared ] logError: @" Missing session items!" error: nil ];
1961+ self.networkCount = 0 ;
19581962 BNCPerformBlockOnMainThreadSync (^{
19591963 [req processResponse: nil error: [NSError branchErrorWithCode: BNCInitError]];
19601964 });
0 commit comments