Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local dls=setmetatable({}, { __mode = 'k' })
- local t=getmetatable(HTTPGet())
- t.__gc__orig=t.__gc__orig or t.__gc
- function t:__gc()
- print(self,dls[self],"gc!")
- return t.__gc__orig(self)
- end
- t.Download__orig=t.Download__orig or t.Download
- function t:Download(a,b,c)
- dls[self]=a
- return t.Download__orig(self,a,b,c)
- end
- timer.Create('1',0.1,200,function()
- local a=HTTPGet()
- a:Download("http://0.0.0.0","",function()end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment