From 4ac6cc16fd54c12161b131e3b9bab0ac17dc4d01 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Wed, 7 Aug 2013 17:58:20 +0200 Subject: The close operation is actually async too. Meaning that the destroy operation probably should become async... --- src/LuaHandle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LuaHandle.cc') diff --git a/src/LuaHandle.cc b/src/LuaHandle.cc index 7607665..a1dd93d 100644 --- a/src/LuaHandle.cc +++ b/src/LuaHandle.cc @@ -22,7 +22,7 @@ int sLua_IOHandle::IOHandle_proceed(Balau::Lua & L, int n, Balau::IOHandle * obj switch (caller) { case IOHANDLE_CLOSE: - h->close(); + return L.yield(Balau::Future([h]() mutable { h->close(); return 0; })); break; } -- cgit v1.2.3