mirror of
https://github.com/CFC-Servers/cfc_network_promises.git
synced 2025-03-04 03:03:19 -05:00
Update lua/network_promises/async.lua
Co-authored-by: Brandon Sturgeon <sturgeonb4@gmail.com>
This commit is contained in:
parent
3205411a7b
commit
3d67ef6dca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user