summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/request.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp
index e561ce1d..24c3694d 100644
--- a/src/libcamera/request.cpp
+++ b/src/libcamera/request.cpp
@@ -262,7 +262,9 @@ FrameBuffer *Request::findBuffer(const Stream *stream) const
*/
void Request::complete()
{
+ ASSERT(status_ == RequestPending);
ASSERT(!hasPendingBuffers());
+
status_ = cancelled_ ? RequestCancelled : RequestComplete;
LOG(Request, Debug)