aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-08-18 16:48:16 +0200
committerKim Alvefur <zash@zash.se>2016-08-18 16:48:16 +0200
commit19db7cfbc7075c3a5e3a1c9971cd53a20452e820 (patch)
treef0f8c5b8d6352412210526ccb7d274431c28facf
parentc5a123ab408b06d82e2cc17e818bd862b8b66876 (diff)
downloadprosody-19db7cfbc7075c3a5e3a1c9971cd53a20452e820.tar.gz
prosody-19db7cfbc7075c3a5e3a1c9971cd53a20452e820.zip
net.server_epoll: Return status from starttls method
-rw-r--r--net/server_epoll.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 713baa0c..57911db1 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -377,6 +377,7 @@ function interface:starttls(ctx)
if not conn then
self:on("disconnect", err);
self:destroy();
+ return conn, err;
end
conn:settimeout(0);
self.conn = conn;