houxiao
2017-08-17 0c3bba1a4d7b652807dfb74e1a31012802bd2987
VisitFace/RtspNativeCodec/app/src/main/cpp/RemoteFunc.h
@@ -57,10 +57,17 @@
   static void *rServer_thd(void *arg)
   {
      RemoteServer &rs = *(RemoteServer *) arg;
      capnp::EzRpcServer trpcServer(kj::heap<T>(), rs.host, rs.port);
      auto &serverLoop = trpcServer.getWaitScope();
      kj::NEVER_DONE.wait(serverLoop);
      try {
         RemoteServer &rs = *(RemoteServer *) arg;
         capnp::EzRpcServer trpcServer(kj::heap<T>(), rs.host, rs.port);
         auto &serverLoop = trpcServer.getWaitScope();
         kj::NEVER_DONE.wait(serverLoop);
      }
      catch (kj::Exception e){
         LOG_ERROR<<e.getLine()<<LOG_ENDL;
      }
   }
   pthread_t server_thid;