2022-07-29 18:34:30 +02:00
|
|
|
diff --git net/test/embedded_test_server/embedded_test_server.cc net/test/embedded_test_server/embedded_test_server.cc
|
2022-09-26 21:30:45 +02:00
|
|
|
index cbb2e334028e2..b469705cd0f84 100644
|
2022-07-29 18:34:30 +02:00
|
|
|
--- net/test/embedded_test_server/embedded_test_server.cc
|
|
|
|
+++ net/test/embedded_test_server/embedded_test_server.cc
|
2022-08-23 03:37:40 +02:00
|
|
|
@@ -983,7 +983,7 @@ bool EmbeddedTestServer::PostTaskToIOThreadAndWait(base::OnceClosure closure) {
|
2022-07-29 18:34:30 +02:00
|
|
|
if (!base::CurrentThread::Get())
|
|
|
|
temporary_loop = std::make_unique<base::SingleThreadTaskExecutor>();
|
|
|
|
|
|
|
|
- base::RunLoop run_loop;
|
|
|
|
+ base::RunLoop run_loop(base::RunLoop::Type::kNestableTasksAllowed);
|
|
|
|
if (!io_thread_->task_runner()->PostTaskAndReply(
|
|
|
|
FROM_HERE, std::move(closure), run_loop.QuitClosure())) {
|
|
|
|
return false;
|
2022-08-23 03:37:40 +02:00
|
|
|
@@ -1010,7 +1010,7 @@ bool EmbeddedTestServer::PostTaskToIOThreadAndWaitWithResult(
|
2022-07-29 18:34:30 +02:00
|
|
|
if (!base::CurrentThread::Get())
|
|
|
|
temporary_loop = std::make_unique<base::SingleThreadTaskExecutor>();
|
|
|
|
|
|
|
|
- base::RunLoop run_loop;
|
|
|
|
+ base::RunLoop run_loop(base::RunLoop::Type::kNestableTasksAllowed);
|
|
|
|
bool task_result = false;
|
|
|
|
if (!base::PostTaskAndReplyWithResult(
|
|
|
|
io_thread_->task_runner().get(), FROM_HERE, std::move(task),
|