I am doing py_pjsua.destroy() gtk.main_quit() 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... What is the cons of doing the latter? Mesquita On Thu, 2008-03-13 at 10:01 +0000, Benny Prijono wrote: > On 3/13/08, Jo?o Mesquita <jmesquita at contactnet.com.br> wrote: > > I am developing a GTK based softphone using py_pjsua and I am having a > > little problem on cleanly exiting the application by calling the > > destroy() method of pjsip. It does not block the program and gtk.quit() > > is called right after even tho the process is not yet ready to terminate > > providing to the user a "Application Not Responding" window untill pjsua > > gets correctly cleaned. > > I think I heard similar problem in the past. Have you terminated the > worker thread before calling destroy()? > > cheers, > -benny > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org