diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/server_epoll.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua index b62bad83..e9d37426 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -336,6 +336,7 @@ end -- Called when socket is writable function interface:onwritable() self:onconnect(); + if not self.conn then return; end -- could have been closed in onconnect local buffer = self.writebuffer; local data = t_concat(buffer); local ok, err, partial = self.conn:send(data); |