FIX: prosody: destroy_request check
This commit is contained in:
parent
11ee71a51c
commit
f14a595462
|
@ -142,9 +142,10 @@ function Util:get_public_key(keyId)
|
||||||
-- TODO: This check is racey. Not likely to be a problem, but we should
|
-- TODO: This check is racey. Not likely to be a problem, but we should
|
||||||
-- still stick a mutex on content / code at some point.
|
-- still stick a mutex on content / code at some point.
|
||||||
if code == nil then
|
if code == nil then
|
||||||
-- no longer works in prosody 0.11
|
-- no longer present in prosody 0.11, so cehck before calling
|
||||||
-- @TODO: work with prosody devs to determine better timeout mechanism for timing out active http requests
|
if http.destroy_request ~= nil then
|
||||||
-- http.destroy_request(request);
|
http.destroy_request(request);
|
||||||
|
end
|
||||||
done();
|
done();
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue