about summary refs log tree commit diff stats
path: root/src/loader/loader.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader/loader.nim')
-rw-r--r--src/loader/loader.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/loader/loader.nim b/src/loader/loader.nim
index e8d29ee2..732336f9 100644
--- a/src/loader/loader.nim
+++ b/src/loader/loader.nim
@@ -1008,6 +1008,8 @@ proc openCachedItem(ctx: LoaderContext; stream: SocketStream;
     w.swrite(ps != nil)
     if ps != nil:
       w.sendAux.add(FileHandle(ps.fd))
+  if ps != nil:
+    ps.sclose()
   stream.sclose()
 
 proc passFd(ctx: LoaderContext; stream: SocketStream; client: ClientData;