Skip to content

Commit ba456cb

Browse files
committed
improve
1 parent 78abc13 commit ba456cb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sentry-android-core/src/main/java/io/sentry/android/core/DefaultAndroidEventProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class DefaultAndroidEventProcessor implements EventProcessor {
3737

3838
private final @NotNull BuildInfoProvider buildInfoProvider;
3939
private final @NotNull SentryAndroidOptions options;
40-
private final @NotNull Future<DeviceInfoUtil> deviceInfoUtil;
40+
private final @Nullable Future<DeviceInfoUtil> deviceInfoUtil;
4141
private final @NotNull LazyEvaluator<String> deviceFamily =
4242
new LazyEvaluator<>(() -> ContextUtils.getFamily(NoOpLogger.getInstance()));
4343

sentry/src/main/java/io/sentry/transport/QueuedThreadPoolExecutor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public Future<?> submit(final @NotNull Runnable task) {
6969
try {
7070
return super.submit(task);
7171
} catch (RejectedExecutionException e) {
72+
unfinishedTasksCount.decrement();
7273
lastRejectTimestamp = dateProvider.now();
7374
logger.log(SentryLevel.WARNING, "Submit rejected by thread pool executor", e);
7475
return new CancelledFuture<>();

0 commit comments

Comments
 (0)