Merged revisions 291905 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Fri, 15 Oct 2010 16:54:07 +0000 (16:54 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 15 Oct 2010 16:54:07 +0000 (16:54 +0000)
commit45fb4df2886efebced41fd9dfd1249daca71159f
tree1c36d37983153a2dc6e63a51d972910889ce5327
parentdc0b76c04c4a867797401eec478013ecfb23ebe9
Merged revisions 291905 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r291905 | twilson | 2010-10-15 09:39:58 -0700 (Fri, 15 Oct 2010) | 14 lines

  Merged revisions 291904 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2

  ........
    r291904 | twilson | 2010-10-15 09:16:57 -0700 (Fri, 15 Oct 2010) | 7 lines

    Don't crash or deadlock on module unload

    We can't hold the lock while pthread_join is called since aji_log_hook will
    attempt to lock from the other therad. We reorder the pthread_join and
    ast_aji_disconnect so that we don't do an SSL_read() while SSL_shutdown is
    running, causing a crash.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@291906 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_jabber.c