[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] Do not sent ipc message when son process crashed (#2838)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darin726 authored and YorkShen committed Aug 19, 2019
1 parent 5e96986 commit 5bce92c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion weex_core/Source/android/jsengine/object/weex_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool WeexEnv::is_app_crashed() {
return false;
bool crashed = crashHandler->is_crashed();
if (crashed) {
LOG_TLOG("jsEngine", "%s", "AppCrashed");
LOGE("jsEngine AppCrashed");
}
return crashed;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void BackToWeexCoreQueue::stop() {
}

void BackToWeexCoreQueue::IPCTask::run() {
if (params.empty())
if (params.empty() || WeexEnv::getEnv()->is_app_crashed())
return;

std::unique_ptr<IPCSerializer> serializer(createIPCSerializer());;
Expand Down

0 comments on commit 5bce92c

Please sign in to comment.