From 7f686c13db864be03d7a5e144b0be7478c4b0a96 Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 5 Mar 2021 01:15:08 +0100 Subject: Fixed addition of discard function to __index --- stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream.c b/stream.c index f5dab24..5dbddb5 100644 --- a/stream.c +++ b/stream.c @@ -45,8 +45,8 @@ int stream_push_new(lua_State * L, const int fd) lua_pushcfunction(L, stream_flush); lua_rawset(L, -3); - lua_pushliteral(L, "flush"); - lua_pushcfunction(L, stream_flush); + lua_pushliteral(L, "discard"); + lua_pushcfunction(L, stream_discard); lua_rawset(L, -3); } lua_rawset(L, -3); -- cgit v1.1