From 7eb35f65bfd5cbe5841d5b555772641d52da5a79 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 13 Nov 2013 16:15:57 +0100 Subject: [SERVER] Mark image complete if so --- src/server/image.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/server/image.c b/src/server/image.c index 40de3fd..f9e8ea1 100644 --- a/src/server/image.c +++ b/src/server/image.c @@ -636,6 +636,11 @@ static int image_try_load(char *base, char *path, int withUplink) crc32list = NULL; function_return = TRUE; goto load_error; + } else if ( existing->cache_map != NULL && cache_map == NULL ) { + // Image seems complete now! + memset( existing->cache_map, -1, IMGSIZE_TO_MAPBYTES(existing->filesize) ); + function_return = TRUE; + goto load_error; } else { // Nothing changed about the existing image, so do nothing function_return = TRUE; goto load_error; -- cgit v1.2.3-55-g7522