1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-17 21:58:06 +00:00

tabs update + object identity

This commit is contained in:
kepler155c@gmail.com
2017-10-09 00:26:19 -04:00
parent 955f11042b
commit f5b99d91e5
4 changed files with 101 additions and 51 deletions

View File

@@ -21,16 +21,13 @@ if not http._patched then
else
syncLocks[key] = { }
end
local s, m = pcall(fn)
fn()
local co = table.remove(syncLocks[key], 1)
if co then
os.queueEvent('sync_lock', co)
else
syncLocks[key] = nil
end
if not s then
error(m)
end
end
-- todo -- completely replace http.get with function that