diff --git a/httpserver.lua b/httpserver.lua index 1e1d130..681b3af 100644 --- a/httpserver.lua +++ b/httpserver.lua @@ -139,7 +139,7 @@ return function (port) if connectionThreadStatus == "suspended" then -- Not finished sending file, resume. 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 -- We're done sending file. connection:close()