diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-02-13 16:59:29 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-02-13 16:59:29 +0000 |
commit | 338642be62d4d376dd7e866e482b7d55aec0d775 (patch) | |
tree | 7c9289e797dd4931c82880f08f0a3960bc13e5c5 /pjnath | |
parent | 379f21d67f143af70c85fd9ef2af67cc87d150e3 (diff) |
Ticket #460: Concurrency problem when destroying stream (thanks Michael Broughton)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1790 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath')
-rw-r--r-- | pjnath/src/pjnath/ice_strans.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c index 904776d6..d554f12e 100644 --- a/pjnath/src/pjnath/ice_strans.c +++ b/pjnath/src/pjnath/ice_strans.c @@ -331,6 +331,11 @@ static pj_status_t create_component(pj_ice_strans *ice_st, if (status != PJ_SUCCESS) goto on_error; + /* Disable concurrency */ + status = pj_ioqueue_set_concurrency(comp->key, PJ_FALSE); + if (status != PJ_SUCCESS) + goto on_error; + pj_ioqueue_op_key_init(&comp->read_op, sizeof(comp->read_op)); pj_ioqueue_op_key_init(&comp->write_op, sizeof(comp->write_op)); |