[Twisted-Python] adbapi question
itamar at itamarst.org
Wed Apr 30 21:38:15 EDT 2003
On Wed, 30 Apr 2003 23:28:31 +0100
Jon Dyte <jon at totient.demon.co.uk> wrote:
> Below is a small script. My question is what is the correct way to
> exit after using the adbapi stuff. The script as it stands just hangs
> the terminal until I Ctrl-Z and kill it.
You don't want a reactor.crash() and a reactor.stop(). Just do
Using threads can make your python program not exit if they hang around,
but reactor.stop() should shut down all threads in the thread pool.
Itamar Shtull-Trauring http://itamarst.org/
http://www.zoteca.com -- Python & Twisted consulting
More information about the Twisted-Python