From 4cbaaae7c55e71d2d4db591029394812077eb844 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 25 Mar 2025 13:13:02 +0530 Subject: Add web.history for history navigation --- src/AsyncEventLoop.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/AsyncEventLoop.cpp') diff --git a/src/AsyncEventLoop.cpp b/src/AsyncEventLoop.cpp index 3acbc41..0ee9986 100644 --- a/src/AsyncEventLoop.cpp +++ b/src/AsyncEventLoop.cpp @@ -31,6 +31,9 @@ void AsyncEventLoop::process_tasks() { { const std::lock_guard lock(tasks_queue_mutex); + if (tasks_queue.empty()) + return; + tasks_queue.swap(tasks); } -- cgit v1.3.1