Why do you want to do this in a thread? What's wrong with
reactor.callLater?

import time
from twisted.internet import reactor

def shutdown():

    time.sleep(3)
    print "stopping"
    reactor.callFromThread(reactor.stop)

reactor.callInThread(shutdown)
reactor.run()

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to