We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f7e6fd commit 8eecba2Copy full SHA for 8eecba2
1 file changed
google/cloud/storage/internal/async/writer_connection_buffered.cc
@@ -397,7 +397,7 @@ class AsyncWriterConnectionBufferedState
397
flush_ = false;
398
// Check if the promise has already been completed.
399
if (finalized_promise_completed_) {
400
- lk.unlock(); // Release lock before returning
+ // Since the lock is passed by value, no explicit unlock is needed.
401
return;
402
}
403
// Mark the promise as completed *before* moving it.
0 commit comments