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
@@ -458,8 +458,8 @@ class AsyncWriterConnectionResumedState
458458 flushed.set_value (result);
459459 // Restart the write loop ONLY if we are not already finalizing.
460460 // If finalizing_ is true, the completion will be handled by OnFinalize.
461- std::unique_lock<std::mutex> loop_lk (mu_);
462- if (!finalizing_) WriteLoop (std::move (loop_lk));
461+ // std::unique_lock<std::mutex> loop_lk(mu_);
462+ // if (!finalizing_) WriteLoop(std::move(loop_lk));
463463 }
464464
465465 void SetError (std::unique_lock<std::mutex> lk, Status const & status) {
You can’t perform that action at this time.
0 commit comments