qicosmos / rest_rpc

modern C++(C++11), simple, easy to use rpc framework
MIT License
1.66k stars 365 forks source link

Fix join an unjoinable thread in rpc client. #36

Closed jovany-wang closed 3 years ago

jovany-wang commented 3 years ago

The thd_ in rpc_client.hpp will be joined twice, which might introduce the following exception:

libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error:
      recursive_mutex lock failed: Invalid argument