File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ class SerialConnection : public StreamConnection{
164164
165165 // Start receiver thread.
166166 try {
167- m_listener = thread_pool.blocking_dispatch ([this ]{
167+ m_listener = thread_pool.dispatch_now_blocking ([this ]{
168168 run_with_catch (
169169 " SerialConnection::SerialConnection()" ,
170170 [this ]{ recv_loop (); }
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class ClientSocket_POSIX final : public AbstractClientSocket{
6262 }
6363 try {
6464 m_state.store (State::CONNECTING, std::memory_order_relaxed);
65- m_thread = m_thread_pool.blocking_dispatch ([=, this ]{
65+ m_thread = m_thread_pool.dispatch_now_blocking ([=, this ]{
6666 thread_loop (address, port);
6767 });
6868 }catch (...){
You can’t perform that action at this time.
0 commit comments