Software /
code /
prosody
Diff
util/async.lua @ 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 |
parent | 5790:959163e4d631 |
child | 5792:aac4c6147647 |
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