[Twisted-Python] stopping LoopCall and check if running

L. Daniel Burr ldanielburr at me.com
Mon Sep 5 20:04:37 MDT 2011


Hi Stephan,

On Mon, 05 Sep 2011 20:50:28 -0500, Stephan <schenette at gmail.com> wrote:

> I have a question on LoopCall.
>
> I have a process that uses a sequence of LoopCalls, once one finishes
> I call the next to check for the next critical event to continue:

[SNIP]

> The problem is that I'm getting errors, errors when I try to call stop
> when stop perhaps has already been called.

Try checking your LoopingCall's .running attrbute in your code; that  
should allow you to avoid spurious calls to .stop()

Hope this helps,

L. Daniel Burr




More information about the Twisted-Python mailing list