zshshr closed pull request #2001: * [Android] try to fix threadpool rejectException when ShutDown URL: https://github.com/apache/incubator-weex/pull/2001
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/android/sdk/src/main/java/com/taobao/weex/appfram/storage/DefaultWXStorage.java b/android/sdk/src/main/java/com/taobao/weex/appfram/storage/DefaultWXStorage.java index 226525bc52..0ffc230cfb 100644 --- a/android/sdk/src/main/java/com/taobao/weex/appfram/storage/DefaultWXStorage.java +++ b/android/sdk/src/main/java/com/taobao/weex/appfram/storage/DefaultWXStorage.java @@ -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)); } } ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services