summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amiga/gui.c2
-rw-r--r--desktop/netsurf.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 998b169b0..d77bdfa48 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -2468,7 +2468,7 @@ void gui_poll(bool active)
schedule_run checks every event, really they need to be sorted so only
the first event needs to be run on each signal. */
- if(active)
+ if(0)
{
ami_handle_msg();
ami_handle_appmsg();
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index 0b1cffe0a..dd4000bc0 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -27,6 +27,7 @@
#include <libwapcaplet/libwapcaplet.h>
#include "utils/config.h"
+#include "utils/schedule.h"
#include "utils/utsname.h"
#include "content/content_factory.h"
#include "content/fetch.h"
@@ -239,6 +240,10 @@ nserror netsurf_init(int *pargc,
return ret;
}
+static void netsurf_fetch_callback(void *p)
+{
+ hlcache_poll();
+}
/**
* Gui NetSurf main loop.
@@ -246,8 +251,9 @@ nserror netsurf_init(int *pargc,
int netsurf_main_loop(void)
{
while (!netsurf_quit) {
+ if(fetch_active)
+ schedule(0, netsurf_fetch_callback, NULL);
gui_poll(fetch_active);
- hlcache_poll();
}
return 0;