• rayaman released this 2024-03-24 23:29:43 -04:00 | 0 commits to master since this release

    Update 16.0.1 - Bug fix

    Fixed

    • thread.pushStatus() wasn't properly working when forwarding events from THREAD.pushStatus OnStatus connection. This bug also caused stack overflow errors with the following code
    func = thread:newFunction(function()
    	for i=1,10 do
    		thread.sleep(1)
    		thread.pushStatus(i)
    	end
    end)
    
    func2 = thread:newFunction(function()
    	local ref = func()
    	ref.OnStatus(function(num)
    		-- do stuff with this data
    
    		thread.pushStatus(num*2) -- Technically this is not ran within a thread. This is ran outside of a thread inside the thread handler. 
    	end)
    end)
    
    local handler = func2()
    handler.OnStatus(function(num)
    	print(num)
    end)
    
    multi:mainloop()
    
    Downloads