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
|
2024-05-23 03:52:35 +02:00
|
|
|
index a3ec8894015a8..eec36b0183bce 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
|
2024-05-23 03:52:35 +02:00
|
|
|
@@ -1041,7 +1041,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;
|
2024-05-23 03:52:35 +02:00
|
|
|
@@ -1068,7 +1068,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;
|
2023-01-03 00:34:43 +01:00
|
|
|
if (!io_thread_->task_runner()->PostTaskAndReplyWithResult(
|
|
|
|
FROM_HERE, std::move(task),
|