# HG changeset patch # User Guido Berhoerster # Date 1567093266 -7200 # Node ID b9c65915cc5484869638e9bb15a78197ac822e3d # Parent 9905d4ae351c9ce4b76662fe649cb0fca89b7c5c Reduce delay before checking for updates after an "updates-changed" signal diff -r 9905d4ae351c -r b9c65915cc54 pui-backend.c --- a/pui-backend.c Thu Aug 29 13:48:47 2019 +0200 +++ b/pui-backend.c Thu Aug 29 17:41:06 2019 +0200 @@ -557,7 +557,8 @@ if (self->check_id != 0) { g_source_remove(self->check_id); } - self->check_id = g_timeout_add_seconds(PUI_STARTUP_DELAY, + self->check_id = + g_timeout_add_seconds(PUI_UPDATES_CHANGED_DELAY, irregular_check, self); } } diff -r 9905d4ae351c -r b9c65915cc54 pui-common.h --- a/pui-common.h Thu Aug 29 13:48:47 2019 +0200 +++ b/pui-common.h Thu Aug 29 17:41:06 2019 +0200 @@ -30,6 +30,10 @@ #define PUI_STARTUP_DELAY (3 * 60) #endif /* !PUI_STARTUP_DELAY */ +#ifndef PUI_UPDATES_CHANGED_DELAY +#define PUI_UPDATES_CHANGED_DELAY (30) +#endif /* !PUI_UPDATES_CHANGED_DELAY */ + #ifndef PUI_CHECK_UPDATES_INTERVAL #define PUI_CHECK_UPDATES_INTERVAL (60 * 60) #endif /* !PUI_CHECK_UPDATES_INTERVAL */