diff --git a/speech/api/streaming_transcribe_singlethread.cc b/speech/api/streaming_transcribe_singlethread.cc index a7a8cd3..9153ef3 100644 --- a/speech/api/streaming_transcribe_singlethread.cc +++ b/speech/api/streaming_transcribe_singlethread.cc @@ -120,7 +120,7 @@ class Handler : public std::enable_shared_from_this { return; } // Schedule a new timer to read more data. - cq_.MakeRelativeTimer(std::chrono::seconds(1)).then([&](auto f) { + cq_.MakeRelativeTimer(std::chrono::seconds(1)).then([self](auto f) { self->OnTimer(f.get().status()); }); }