Skip to content

Commit 88c915f

Browse files
committed
graceful shutdown: ensure callback runs on main thread
1 parent d31dc8d commit 88c915f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/extensions/filters/network/ssh/stream_tracker.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void StreamTracker::startGracefulShutdown(std::chrono::milliseconds delay, std::
8080
std::shared_ptr<void> wg = std::make_shared<Cleanup>([this, complete_cb] {
8181
ENVOY_LOG(info, "ssh: all streams shutdown");
8282
shutdown_completed_ = true;
83-
complete_cb();
83+
main_thread_dispatcher_.post(std::move(complete_cb));
8484
});
8585

8686
thread_local_stream_table_.runOnAllThreads(

0 commit comments

Comments
 (0)