Skip to content

Commit

Permalink
Update SpeechToTextImplementation.tizen.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
brminnick committed Sep 16, 2023
1 parent 5212804 commit 7eda8ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async Task<string> InternalListenAsync(CultureInfo culture, IProgress<string>? r
{
recognitionProgress = recognitionResult;

taskResult.TrySetCanceled(cancellationToken);
taskResult?.TrySetCanceled(cancellationToken);
taskResult = new TaskCompletionSource<string>();

await InternalStartListeningAsync(culture, cancellationToken);
Expand Down

0 comments on commit 7eda8ff

Please sign in to comment.