close tmp file handle
May fix permission problem on windows
This commit is contained in:
parent
fe7d6d524e
commit
a38abecd66
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ webAppThread assistantdata urlrenderer noannex cannotrun listenhost postfirstrun
|
|||
, return app
|
||||
)
|
||||
runWebApp listenhost app' $ \addr -> if noannex
|
||||
then withTmpFile "webapp.html" $ \tmpfile _ ->
|
||||
then withTmpFile "webapp.html" $ \tmpfile h -> do
|
||||
hClose h
|
||||
go addr webapp tmpfile Nothing
|
||||
else do
|
||||
let st = threadState assistantdata
|
||||
|
|
Loading…
Add table
Reference in a new issue