Update httpserver.lua

fixed typo
This commit is contained in:
smet 2017-03-03 05:18:56 +01:00 committed by GitHub
parent 2dea3c9daa
commit 79313b0644

View File

@ -139,7 +139,7 @@ return function (port)
if connectionThreadStatus == "suspended" then if connectionThreadStatus == "suspended" then
-- Not finished sending file, resume. -- Not finished sending file, resume.
local status, err = coroutine.resume(connectionThread) local status, err = coroutine.resume(connectionThread)
if not status then log(getpeer(), "Error: " .. err) end if not status then log(connection:getpeer(), "Error: " .. err) end
elseif connectionThreadStatus == "dead" then elseif connectionThreadStatus == "dead" then
-- We're done sending file. -- We're done sending file.
connection:close() connection:close()