close tmp file handle

May fix permission problem on windows
This commit is contained in:
Joey Hess 2013-12-07 11:45:01 -04:00
parent fe7d6d524e
commit a38abecd66

View file

@ -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