From 968677e97fae7c13ef3c252e2ce66ccf6423ff36 Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Fri, 26 Jul 2024 19:23:30 +0400 Subject: [PATCH] chore: Fix comments --- src/internal_modules/roc_pipeline/sender_session.cpp | 2 ++ src/internal_modules/roc_status/status_code.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/internal_modules/roc_pipeline/sender_session.cpp b/src/internal_modules/roc_pipeline/sender_session.cpp index 796c433da..4392f0a6b 100644 --- a/src/internal_modules/roc_pipeline/sender_session.cpp +++ b/src/internal_modules/roc_pipeline/sender_session.cpp @@ -426,6 +426,8 @@ status::StatusCode SenderSession::write(audio::Frame& frame) { roc_panic_if(init_status_ != status::StatusOK); if (fail_status_ != status::NoStatus) { + // Failure happened, and session will be removed soon. Until that, + // always return StatusOK and do nothing. return status::StatusOK; } diff --git a/src/internal_modules/roc_status/status_code.h b/src/internal_modules/roc_status/status_code.h index 5ff8a15d2..2c109f8e6 100644 --- a/src/internal_modules/roc_status/status_code.h +++ b/src/internal_modules/roc_status/status_code.h @@ -102,7 +102,7 @@ enum StatusCode { //! @remarks //! Indicates that plugin lookup or initialization failed. //! @note - //! Example: we're trying to create PLC plugin, but use-provided callback + //! Example: we're trying to create PLC plugin, but user-provided callback //! failed to allocate it. StatusNoPlugin,