diff options
author | Adam Lerer <alerer@fb.com> | 2016-04-14 01:16:02 +0300 |
---|---|---|
committer | Adam Lerer <alerer@fb.com> | 2016-04-14 23:09:31 +0300 |
commit | a9d4eca0ebb412a886cdc736a6e92a16851211a9 (patch) | |
tree | c4dfe0cd562a34fcf73698e08b4699263b13e1c1 /test | |
parent | 9e31123db00c8c8c437a3cba744576456de38731 (diff) |
propagate errors immediately to prevent deadlocks
Diffstat (limited to 'test')
-rw-r--r-- | test/test-threads-async.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test/test-threads-async.lua b/test/test-threads-async.lua index 68bcd35..63f4869 100644 --- a/test/test-threads-async.lua +++ b/test/test-threads-async.lua @@ -37,9 +37,6 @@ local function get() -- is there still something to do? if pool:hasjob() then pool:dojob() -- yes? do it! - if pool:haserror() then -- check for errors - pool:synchronize() -- finish everything and throw error - end return result end |