From 75c97cfd449b2bac8e61af1017a83bdf43f5e8fe Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Wed, 14 Dec 2016 14:44:23 +1100 Subject: discover: Maintain a backlog of status updates Add status updates to a persistent list in the discover_server struct, and send each client the backlog on connect. This avoids clients missing useful messages from early init. Clients will only show this in the backlog screen to avoid flooding the client's status line. Signed-off-by: Samuel Mendoza-Jonas --- discover/boot.c | 1 + 1 file changed, 1 insertion(+) (limited to 'discover/boot.c') diff --git a/discover/boot.c b/discover/boot.c index da7b946..fab4b61 100644 --- a/discover/boot.c +++ b/discover/boot.c @@ -45,6 +45,7 @@ static void __attribute__((format(__printf__, 4, 5))) update_status( va_end(ap); status.type = type; + status.backlog = false; pb_debug("boot status: [%d] %s\n", type, status.message); -- cgit v1.1