We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf3203e commit c9ed7c6Copy full SHA for c9ed7c6
1 file changed
src/lua/cURL/impl/cURL.lua
@@ -670,8 +670,9 @@ local function wrap_callback(...)
670
end
671
672
local function wrap_socketfunction(self, cb)
673
+ local ptr = setmetatable({value = self},{__mode = 'v'})
674
return function(h, ...)
- local e = self._easy[h]
675
+ local e = ptr.value._easy[h]
676
if e then return cb(e, ...) end
677
return 0
678
0 commit comments