author | Kim Alvefur <zash@zash.se> |
Sat, 03 Feb 2018 17:36:55 +0100 | |
changeset 8510 | 71ef6d509105 |
parent 8509 | 174fd716c9fa |
child 8521 | 0de0018bdf91 |
--- a/net/server_epoll.lua Fri Feb 02 23:46:00 2018 +0100 +++ b/net/server_epoll.lua Sat Feb 03 17:36:55 2018 +0100 @@ -539,7 +539,10 @@ -- Connected! function interface:onconnect() self:setflags(true, false); - self:on("connect"); + if not self._connected then + self._connected = true; + self:on("connect"); + end end function interface:onfirstwritable()