chiark / gitweb /
bundles download: Explicitly drop ig to release lock after opening
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 May 2021 02:37:32 +0000 (03:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 4 May 2021 11:28:51 +0000 (12:28 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
daemon/main.rs

index 54d9c5adb841f5ace0012d4bc0c49829fb4f50f5..ae19e80954b42782d5d06f054ccf07ce2c74ef11 100644 (file)
@@ -253,6 +253,7 @@ fn bundle<'r>(instance: Parse<InstanceName>,
     Err(e) => throw!(IE::from(AE::from(e).context(path).context("bundle"))),
     Ok(y) => y,
   };
+  drop(ig);
   let ctype = match id.kind {
     bundles::Kind::Zip => ContentType::ZIP,
   };