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

Commit

Permalink
* [Android] try to fix RejectedExecutionException on DefaultWXStorage. (
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-chen authored and YorkShen committed Feb 18, 2019
1 parent 7659a59 commit 700122d
Showing 1 changed file with 1 addition and 1 deletion.
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 && !mExecutorService.isShutdown()) {
if(runnable != null && !mExecutorService.isShutdown() && !mExecutorService.isTerminated()) {
mExecutorService.execute(WXThread.secure(runnable));
}
}
Expand Down

0 comments on commit 700122d

Please sign in to comment.