close connection on sent instead on receive

This commit is contained in:
devsaurus 2016-01-07 23:00:24 +01:00
parent 5a6975b343
commit 626e7d3c91
1 changed files with 1 additions and 1 deletions

View File

@ -26,6 +26,6 @@ srv:listen(80,function(conn)
end
buf = buf.."<option".._on..">ON</opton><option".._off..">OFF</option></select></form>";
client:send(buf);
client:close();
end)
conn:on("sent", function (c) c:close() end)
end)