# HG changeset patch # User Kim Alvefur # Date 1619398146 -7200 # Node ID b92147edd172406197c01d156138e63f1feb3f65 # Parent 0befc680970b7b86736bd21f3b326f0e791a4031 mod_storage_xmlarchive: Workaround for #1646 (util.async bug with Lua 5.1) diff -r 0befc680970b -r b92147edd172 mod_storage_xmlarchive/mod_storage_xmlarchive.lua --- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Sun Apr 25 17:09:22 2021 +0200 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon Apr 26 02:49:06 2021 +0200 @@ -132,7 +132,9 @@ end local function get_nexttick() - if async.ready() then + -- COMPAT util.async under Lua 5.1 runs into problems trying to yield across + -- pcall barriers. Workaround for #1646 + if _VERSION ~= "Lua 5.1" and async.ready() then return function () -- slow down local wait, done = async.waiter();