py_pjsua && destroy()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux