diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-06-25 13:14:54 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-06-25 13:14:54 +0000 |
commit | ddf148b359afe03ae1aaac5bbf6252fb072c9be8 (patch) | |
tree | 9ec25eb56c49674c816dc744dac15f92a55c3f9a | |
parent | 6a92eb9c686a42e321d83e7f055275d57d1fbff8 (diff) |
Ticket #899: pjlib-test failed with "Bus Error" on MacOS X
- backported changes in #891
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.0@2816 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjlib/src/pjlib-test/ioq_unreg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/ioq_unreg.c b/pjlib/src/pjlib-test/ioq_unreg.c index ab47c794..5b320964 100644 --- a/pjlib/src/pjlib-test/ioq_unreg.c +++ b/pjlib/src/pjlib-test/ioq_unreg.c @@ -250,11 +250,12 @@ static int perform_unreg_test(pj_ioqueue_t *ioqueue, PJ_TIME_VAL_GTE(now, time_to_unregister) && sock_data.pool) { - pj_mutex_lock(sock_data.mutex); + //Can't do this otherwise it'll deadlock + //pj_mutex_lock(sock_data.mutex); sock_data.unregistered = 1; pj_ioqueue_unregister(sock_data.key); - pj_mutex_unlock(sock_data.mutex); + //pj_mutex_unlock(sock_data.mutex); pj_mutex_destroy(sock_data.mutex); pj_pool_release(sock_data.pool); sock_data.pool = NULL; |