Software /
code /
prosody
Changeset
5791:2c98061b6b1e
util.async: runner: Fix check for new state to recognise transition to 'waiting'
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 12 Aug 2013 11:50:27 +0100 |
parents | 5790:959163e4d631 |
children | 5792:aac4c6147647 |
files | util/async.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/async.lua Mon Aug 12 10:27:08 2013 +0100 +++ b/util/async.lua Mon Aug 12 11:50:27 2013 +0100 @@ -85,7 +85,7 @@ consumed, state, err = i, "ready", debug.traceback(thread, new_state); self.thread = nil; break; - elseif state == "wait" then + elseif new_state == "wait" then consumed, state = i, "waiting"; break; end