- don't wait for DISCONNECT_B3_CONF in activehangup.

This commit is contained in:
MelwareDE 2007-01-23 19:27:01 +00:00
parent 81939e875d
commit 220db2555e
1 changed files with 6 additions and 7 deletions

View File

@ -1143,15 +1143,14 @@ static void cc_disconnect_b3(struct capi_pvt *i, int wait)
if (!(i->isdnstate & (CAPI_ISDN_STATE_B3_UP | CAPI_ISDN_STATE_B3_PEND))) if (!(i->isdnstate & (CAPI_ISDN_STATE_B3_UP | CAPI_ISDN_STATE_B3_PEND)))
return; return;
if (wait) {
cc_mutex_lock(&i->lock);
}
DISCONNECT_B3_REQ_HEADER(&CMSG, capi_ApplID, get_capi_MessageNumber(), 0); DISCONNECT_B3_REQ_HEADER(&CMSG, capi_ApplID, get_capi_MessageNumber(), 0);
DISCONNECT_B3_REQ_NCCI(&CMSG) = i->NCCI; DISCONNECT_B3_REQ_NCCI(&CMSG) = i->NCCI;
_capi_put_cmsg_wait_conf(i, &CMSG);
if (!wait) { if (wait) {
cc_mutex_lock(&i->lock);
_capi_put_cmsg_wait_conf(i, &CMSG);
} else {
_capi_put_cmsg(&CMSG);
return; return;
} }