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

Commit

Permalink
stop sync if exception occurs (#1532)
Browse files Browse the repository at this point in the history
(cherry picked from commit 139c0bd)
  • Loading branch information
YorkShen committed Sep 17, 2018
1 parent 03c6b7c commit 95aa6c5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ public void run() {
if (mListener != null && (vSyncListener = mListener.get()) != null) {
try {
vSyncListener.OnVSync();
WXSDKManager.getInstance().getWXRenderManager().postOnUiThread(runnable, VSYNC_FRAME);
}catch (UnsatisfiedLinkError e){
if(vSyncListener instanceof WXSDKInstance){
((WXSDKInstance) vSyncListener).onRenderError(
WXErrorCode.WX_DEGRAD_ERR_INSTANCE_CREATE_FAILED.getErrorCode(),
Log.getStackTraceString(e));
}
}
WXSDKManager.getInstance().getWXRenderManager().postOnUiThread(runnable, VSYNC_FRAME);
}
}
};
Expand Down

0 comments on commit 95aa6c5

Please sign in to comment.