Hello everyone,

I have to send a message just before my service quits, but sometimes the 
reactor quits before the msg is sent.
I was wondering if I should user reactor.callLater like so :

self.sendMessage(msg)
reactor.callLater(1, self.stop)

(which I don't really like), or use reactor.callFromThread like so :

self.sendMessage(msg)
reactor.callFromThread(self.stop)

(self.stop calls reactor.stop at some point).

I really need for that msg to be sent before the reactor shuts down.

Thank you,
Gabriel

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to