aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/adns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/adns.lua b/net/adns.lua
index fb68ea71..4c0e5c38 100644
--- a/net/adns.lua
+++ b/net/adns.lua
@@ -34,7 +34,7 @@ function new_async_socket(sock)
newconn.handler.setsockname = function (_, ...) return sock:setsockname(...); end
newconn.handler.setpeername = function (_, ...) local ret = sock:setpeername(...); _.setsend(sock.send); return ret; end
newconn.handler.connect = function (_, ...) return sock:connect(...) end
- newconn.handler.send = function (_, data) return _.write(data) end
+ newconn.handler.send = function (_, data) _.write(data); return _.sendbuffer(); end
return newconn.handler;
end