[go: nahoru, domu]

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

Commit

Permalink
[Android] 1. fix instance not found on preDownLoadMode 2. fix memleak…
Browse files Browse the repository at this point in the history
… after instance destroy (#2494)
  • Loading branch information
lucky-chen authored and YorkShen committed May 29, 2019
1 parent a3d14b3 commit 57cc93b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/sdk/src/main/java/com/taobao/weex/WXSDKInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ public WXSDKInstance(){
mInstanceId = WXSDKManager.getInstance().generateInstanceId();
mWXPerformance = new WXPerformance(mInstanceId);
mApmForInstance = new WXInstanceApm(mInstanceId);
WXSDKManager.getInstance().getAllInstanceMap().put(mInstanceId,this);
}


Expand Down Expand Up @@ -1746,7 +1747,7 @@ public void run() {
public void run() {
WXSDKManager.getInstance().getAllInstanceMap().remove(mInstanceId);
}
},5000);
},1000);
}
}

Expand Down

0 comments on commit 57cc93b

Please sign in to comment.