This commit is contained in:
Malte Rosenbjerg 2020-08-27 17:22:04 +02:00
parent 78919dcdcf
commit eea6adc6f1

View file

@ -64,6 +64,7 @@ void OnCancelEvent(object sender, EventArgs args)
errorCode = t.Result; errorCode = t.Result;
cancellationTokenSource.Cancel(); cancellationTokenSource.Cancel();
}), _ffMpegArguments.During(cancellationTokenSource.Token)); }), _ffMpegArguments.During(cancellationTokenSource.Token));
_ffMpegArguments.Post();
} }
catch (Exception e) catch (Exception e)
{ {
@ -72,7 +73,6 @@ void OnCancelEvent(object sender, EventArgs args)
finally finally
{ {
CancelEvent -= OnCancelEvent; CancelEvent -= OnCancelEvent;
_ffMpegArguments.Post();
} }
return HandleCompletion(throwOnError, errorCode, instance.ErrorData); return HandleCompletion(throwOnError, errorCode, instance.ErrorData);