luvit/luvit

net.lua - No callback on connection errors

d4rkmen opened this issue · 5 comments

When its connection error happened and it should call the callback with error message, it just closes the handle silently

Here it should pass the callback to destroy():

return self:destroy(err)

And here is should pass the exception to the callback

callback()