We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e1e97 commit 4127077Copy full SHA for 4127077
testing/int/tcpserver.cpp
@@ -37,10 +37,16 @@ class tcp_server_wrapper {
37
if (thread)
38
thread->join();
39
else
40
- srv_ctx->run();
+ try {
41
+ srv_ctx->run();
42
+ } catch (std::exception &e) { INFO(e.what()); }
43
}
44
void run() {
- thread = std::make_unique<std::thread>([this](){ this->srv_ctx->run(); });
45
+ thread = std::make_unique<std::thread>([this]() {
46
47
+ this->srv_ctx->run();
48
49
+ });
50
51
lsl::tcp_server* operator->() { return srv.get(); }
52
0 commit comments