summaryrefslogtreecommitdiff
path: root/src/LuaHandle.cc
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-07 17:58:20 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-07 17:58:20 +0200
commit4ac6cc16fd54c12161b131e3b9bab0ac17dc4d01 (patch)
treef6ff890da75a405bfee1d1a9ed9867d6ec4a9900 /src/LuaHandle.cc
parent24dbb15bf6f2b513e2fb75345345b7b646ff1a81 (diff)
The close operation is actually async too. Meaning that the destroy operation probably should become async...
Diffstat (limited to 'src/LuaHandle.cc')
-rw-r--r--src/LuaHandle.cc2
1 files changed, 1 insertions, 1 deletions
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<int>([h]() mutable { h->close(); return 0; }));
break;
}