Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion firebase-messaging/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased

* [changed] Added a NamedThreadFactory to WithinAppServiceConnection's service
connection Executor.

# 24.1.1
* [changed] Bug fix in SyncTask to always unregister the receiver on the same
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import com.google.android.gms.common.stats.ConnectionTracker;
import com.google.android.gms.common.util.concurrent.NamedThreadFactory;
import com.google.android.gms.tasks.Task;
import com.google.android.gms.tasks.TaskCompletionSource;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
Expand Down Expand Up @@ -109,7 +110,9 @@ void finish() {

@SuppressLint("ThreadPoolCreation")
private static ScheduledThreadPoolExecutor createScheduledThreadPoolExecutor() {
ScheduledThreadPoolExecutor threadPoolExecutor = new ScheduledThreadPoolExecutor(1);
ScheduledThreadPoolExecutor threadPoolExecutor =
new ScheduledThreadPoolExecutor(
1, new NamedThreadFactory("Firebase-FirebaseInstanceIdServiceConnection"));
threadPoolExecutor.setKeepAliveTime(EnhancedIntentService.MESSAGE_TIMEOUT_S * 2, SECONDS);
threadPoolExecutor.allowCoreThreadTimeOut(true);
return threadPoolExecutor;
Expand Down
Loading