Commit 626e7d3c authored by devsaurus's avatar devsaurus
Browse files

close connection on sent instead on receive

parent 5a6975b3
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment