about summary refs log tree commit diff stats
path: root/src/loader
diff options
context:
space:
mode:
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/loader.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/loader/loader.nim b/src/loader/loader.nim
index 3c974c95..39dedf7d 100644
--- a/src/loader/loader.nim
+++ b/src/loader/loader.nim
@@ -68,12 +68,12 @@ type
 
   ConnectData = object
     promise: Promise[JSResult[Response]]
-    stream: SocketStream
+    stream*: SocketStream
     request: Request
 
   OngoingData = object
     buf: string
-    response: Response
+    response*: Response
     bodyRead: Promise[string]
 
   LoaderCommand = enum
@@ -437,7 +437,7 @@ proc exitLoader(ctx: LoaderContext) =
   ctx.ssock.close()
   for path in ctx.cacheMap.values:
     discard unlink(cstring(path))
-  quit(0)
+  exitnow(1)
 
 var gctx: LoaderContext
 proc initLoaderContext(fd: cint, config: LoaderConfig): LoaderContext =