File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
google/cloud/storage/internal/async Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -257,8 +257,8 @@ class AsyncWriterConnectionResumedState
257257 auto impl = Impl (lk);
258258 lk.unlock ();
259259 impl->Query ().then ([this , result, w = WeakFromThis ()](auto f) {
260- SetFlushed (std::unique_lock<std::mutex>(mu_), std::move (result));
261260 if (auto self = w.lock ()) return self->OnQuery (f.get ());
261+ SetFlushed (std::unique_lock<std::mutex>(mu_), std::move (result));
262262 });
263263 }
264264
@@ -464,8 +464,8 @@ class AsyncWriterConnectionResumedState
464464 flushed.set_value (result);
465465 // Restart the write loop ONLY if we are not already finalizing.
466466 // If finalizing_ is true, the completion will be handled by OnFinalize.
467- std::unique_lock<std::mutex> loop_lk (mu_);
468- if (!finalizing_) WriteLoop (std::move (loop_lk));
467+ // std::unique_lock<std::mutex> loop_lk(mu_);
468+ // if (!finalizing_) WriteLoop(std::move(loop_lk));
469469 }
470470
471471 void SetError (std::unique_lock<std::mutex> lk, Status const & status) {
You can’t perform that action at this time.
0 commit comments