You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2019/01/03 12:38:07 UTC

[incubator-weex] branch master updated: * [Android] try to fix threadpool rejectException when ShutDown

This is an automated email from the ASF dual-hosted git repository.

zshshr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 572fc28  * [Android] try to fix threadpool rejectException when ShutDown
572fc28 is described below

commit 572fc2885f019adff8dd7aaa91526b3fe1c847a5
Author: zhongcang <qh...@gmail.com>
AuthorDate: Thu Jan 3 20:19:02 2019 +0800

    * [Android] try to fix threadpool rejectException when ShutDown
---
 .../src/main/java/com/taobao/weex/appfram/storage/DefaultWXStorage.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 226525b..0ffc230 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 @@ public class DefaultWXStorage implements IWXStorageAdapter {
             mExecutorService = Executors.newSingleThreadExecutor();
         }
 
-        if(runnable != null) {
+        if(runnable != null && !mExecutorService.isShutdown()) {
             mExecutorService.execute(WXThread.secure(runnable));
         }
     }