houxiao
2017-08-17 2b43077d967c28fe99e1ff2b99f19e1433c710d9
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;