Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

* [Android] try to fix threadpool rejectException when ShutDown #2001

Merged
merged 1 commit into from
Jan 3, 2019
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private void execute(@Nullable final Runnable runnable) {
mExecutorService = Executors.newSingleThreadExecutor();
}

if(runnable != null) {
if(runnable != null && !mExecutorService.isShutdown()) {
mExecutorService.execute(WXThread.secure(runnable));
}
}
Expand Down