Update lua/network_promises/async.lua

Co-authored-by: Brandon Sturgeon <sturgeonb4@gmail.com>
This commit is contained in:
Samuel Williams 2021-07-09 03:25:13 +01:00 committed by Brandon Sturgeon
parent 3205411a7b
commit 3d67ef6dca

View File

@ -58,9 +58,8 @@ promiseReturn = function( f, state, coInput, rootPromiseInput, debugInfoInput )
-- Get information on where the function is for error reporting
debugInfo = debug.getinfo( f, "S" )
else
if rootPromise.state ~= 0 then -- 0 is PENDING
return
end
-- 0 is PENDING
if rootPromise.state ~= 0 then return end
end
-- Don't pass in state for root, arguments to async function should be sent perfectly to it's internal function