diff --git a/lualib/http/websocket.lua b/lualib/http/websocket.lua index 163d3d8b..e0ff85c0 100755 --- a/lualib/http/websocket.lua +++ b/lualib/http/websocket.lua @@ -450,7 +450,7 @@ function M.accept(socket_id, handle, protocol, addr, options) if closed then try_handle(ws_obj, "close") else - try_handle(ws_obj, "error") + try_handle(ws_obj, "error", err) end else -- error(err)