summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-02-24 22:47:44 +0100
committerAki <please@ignore.pl>2021-02-24 22:47:44 +0100
commit5363bb572b05d0ae136c8db5fc8d9370ecff1d1d (patch)
tree13895366794e1521471550d1ee9866cb21b3bc93
parent1aceae67491cd871c1be063ba7f02bf6db85a1fa (diff)
downloadplop-5363bb572b05d0ae136c8db5fc8d9370ecff1d1d.zip
plop-5363bb572b05d0ae136c8db5fc8d9370ecff1d1d.tar.gz
plop-5363bb572b05d0ae136c8db5fc8d9370ecff1d1d.tar.bz2
Plop no longer closes connection on yield
-rw-r--r--plop.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/plop.c b/plop.c
index 445e3f8..34c8d06 100644
--- a/plop.c
+++ b/plop.c
@@ -173,12 +173,10 @@ int plop_handle_client(lua_State * L, struct epoll_event * event)
response_send(c->L, c->fd);
connection_free(L, c);
-
return 0;
}
case LUA_YIELD:
{
- connection_free(L, c); // TODO: This shouldn't be the case... Right?
return 0;
}
default: