# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1471531696 -7200
# Node ID 166b2e0766a4d86f65e62e9370b700f0354a8d1b
# Parent  5e884501a9ac6905a2d132342f765ffcd948d33c
net.server_epoll: Return status from starttls method

diff -r 5e884501a9ac -r 166b2e0766a4 net/server_epoll.lua
--- a/net/server_epoll.lua	Thu Aug 18 16:46:20 2016 +0200
+++ b/net/server_epoll.lua	Thu Aug 18 16:48:16 2016 +0200
@@ -377,6 +377,7 @@
 		if not conn then
 			self:on("disconnect", err);
 			self:destroy();
+			return conn, err;
 		end
 		conn:settimeout(0);
 		self.conn = conn;