From 2f4cd43c4483070e81c0862582a80b59a208f0dd Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 15 Mar 2008 14:45:37 +0100 Subject: [PATCH] Write the hash cache back to disk whenever it is dirty when the daemon exits. --- daemon/client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/client.c b/daemon/client.c index 26b50f3..46766e9 100644 --- a/daemon/client.c +++ b/daemon/client.c @@ -1086,6 +1086,8 @@ static void terminate(void) { if(hashjob != 0) kill(hashjob, SIGHUP); + if(hashwritetimer != NULL) + writehashcache(1); while(shares != NULL) freesharepoint(shares); freecache(shareroot); -- 2.11.0