Changeset

7595:166b2e0766a4

net.server_epoll: Return status from starttls method
author Kim Alvefur <zash@zash.se>
date Thu, 18 Aug 2016 16:48:16 +0200
parents 7594:5e884501a9ac
children 7596:2c4ba55b616c
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;