Skip to content

Commit

Permalink
fix(speech/api): fix segfault due to pass by reference (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
alevenberg authored Oct 4, 2023
1 parent 9e39e76 commit ed076a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speech/api/streaming_transcribe_singlethread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class Handler : public std::enable_shared_from_this<Handler> {
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());
});
}
Expand Down

0 comments on commit ed076a9

Please sign in to comment.