From d0824bf406955077a49b97d633ce081757293448 Mon Sep 17 00:00:00 2001 From: Abhishek Pandey <64667840+1abhishekpandey@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:31:05 +0530 Subject: [PATCH] fix: ensure flushQueueSize always accept appropriate value Previously it was accepting zero, which is causing issue --- Sources/Classes/RSConfigBuilder.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Classes/RSConfigBuilder.m b/Sources/Classes/RSConfigBuilder.m index f7460e32..add4e719 100644 --- a/Sources/Classes/RSConfigBuilder.m +++ b/Sources/Classes/RSConfigBuilder.m @@ -60,6 +60,9 @@ - (instancetype) withFlushQueueSize: (int) flushQueueSize { if (config == nil) { config = [[RSConfig alloc] init]; } + if (flushQueueSize < 1 || flushQueueSize > 100) { + return self; + } config.flushQueueSize = flushQueueSize; return self; }