From 1c67e4c52519f56dd2b5239b968438ec93786aa0 Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Tue, 19 Nov 2024 18:26:10 +0900 Subject: [PATCH] Fixed stack overflow. --- include/async_mqtt/impl/endpoint_recv.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/async_mqtt/impl/endpoint_recv.hpp b/include/async_mqtt/impl/endpoint_recv.hpp index 96f79440..493d73df 100644 --- a/include/async_mqtt/impl/endpoint_recv.hpp +++ b/include/async_mqtt/impl/endpoint_recv.hpp @@ -63,7 +63,7 @@ recv_op { // back the event to the recv_events_ for the next async_recv a_ep.recv_events_.push_front(force_move(event)); state = complete; - as::dispatch( + as::post( a_ep.get_executor(), force_move(self) ); @@ -225,7 +225,7 @@ recv_op { if (!process_one_event(self)) return; } state = complete; // all events processed - as::dispatch( + as::post( a_ep.get_executor(), force_move(self) ); @@ -236,7 +236,7 @@ recv_op { if (!process_one_event(self)) return; } state = complete; // all events processed - as::dispatch( + as::post( a_ep.get_executor(), force_move(self) );