diff --git a/weex_core/Source/android/multiprocess/weex_js_connection.cpp b/weex_core/Source/android/multiprocess/weex_js_connection.cpp index 97d7771fbe..251bc02967 100644 --- a/weex_core/Source/android/multiprocess/weex_js_connection.cpp +++ b/weex_core/Source/android/multiprocess/weex_js_connection.cpp @@ -218,6 +218,10 @@ IPCSender *WeexJSConnection::start(IPCHandler *handler, IPCHandler *serverHandle pthread_attr_init(&threadAttr); pthread_t ipcServerThread; int i = pthread_create(&ipcServerThread, &threadAttr, newIPCServer, &td); + if(i != 0) { + throw IPCException("failed to create ipc server thread"); + } + while (newThreadStatus == UNFINISH) { continue; }