On 3/13/08, Jo?o Mesquita <jmesquita at contactnet.com.br> wrote: > I am doing > py_pjsua.destroy() > gtk.main_quit() That's not exactly what I'm asking. In your script, do you have a worker thread? Or something that calls py_pjsua.handle_events()? Is so, then this worker thread needs to be stopped before you call py_pjsua.destroy(). > If I wrap py_pjsua on another module/class and call py_pjsua.destroy() > on the __del__ method, it simply quits and does no cleanup... I'm not sure about this. Maybe py_pjsua.destroy() is not called at all? > What is the cons of doing the latter? > You should make sure that py_pjsua.destroy() is called or otherwise things don't get cleaned up properly (dangling calls, dangling registration in the server, etc.). cheers, -benny > Mesquita