close connection on sent instead on receive
This commit is contained in:
parent
5a6975b343
commit
626e7d3c91
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue