diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-06 15:05:05 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-06 21:08:14 +0100 |
commit | fb8bbaa65fa69a0a59d5d1fb6be93ab36cd4821a (patch) | |
tree | 4a015b9eb8c11835a1c7b2ba17d1a2300feba5f0 /src/io | |
parent | 7c1d00a6e5c723d101cf2f87991f14a8fc8d006f (diff) | |
download | chawan-fb8bbaa65fa69a0a59d5d1fb6be93ab36cd4821a.tar.gz |
Optimize sendCursorPosition/updateHover, close streams after loadResource
Diffstat (limited to 'src/io')
-rw-r--r-- | src/io/loader.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/io/loader.nim b/src/io/loader.nim index f9964845..7436d174 100644 --- a/src/io/loader.nim +++ b/src/io/loader.nim @@ -112,7 +112,9 @@ proc runFileLoader*(fd: cint, defaultHeaders: HeaderList) = if k notin request.headers.table: request.headers.table[k] = v loadResource(request, stream) + stream.close() of QUIT: + stream.close() break except IOError: # End-of-file, quit. |