aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
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
commita0d0705978f38a612eb43d364b7fa5289810604c (patch)
treef0f8c5b8d6352412210526ccb7d274431c28facf /net/server_epoll.lua
parente7e49c4d02159420d925cf4aa45228822c7810f1 (diff)
downloadprosody-a0d0705978f38a612eb43d364b7fa5289810604c.tar.gz
prosody-a0d0705978f38a612eb43d364b7fa5289810604c.zip
net.server_epoll: Return status from starttls method
Diffstat (limited to 'net/server_epoll.lua')
-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;