Software /
code /
prosody
Diff
util/async.lua @ 8237:f81cd9aaf994
util.async: Fix documentation URL
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 15 Sep 2017 17:17:07 -0400 |
parent | 7725:f928695a2af1 |
child | 8407:f652e1ea2f69 |
line wrap: on
line diff
--- a/util/async.lua Fri Sep 15 17:07:57 2017 -0400 +++ b/util/async.lua Fri Sep 15 17:17:07 2017 -0400 @@ -27,7 +27,7 @@ local function waiter(num) local thread = coroutine.running(); if not thread then - error("Not running in an async context, see https://prosody.im/doc/developers/async"); + error("Not running in an async context, see https://prosody.im/doc/developers/util/async"); end num = num or 1; local waiting; @@ -50,7 +50,7 @@ return function (id, func) local thread = coroutine.running(); if not thread then - error("Not running in an async context, see https://prosody.im/doc/developers/async"); + error("Not running in an async context, see https://prosody.im/doc/developers/util/async"); end local guard = guards[id]; if not guard then