diff options
Diffstat (limited to 'src/server/image.c')
-rw-r--r-- | src/server/image.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |