- move ast_set_state outside of i->lock.

This commit is contained in:
MelwareDE 2006-06-18 20:29:33 +00:00
parent 1d6156f52f
commit 5ef8dd4426
1 changed files with 2 additions and 2 deletions

View File

@ -1393,12 +1393,12 @@ static int pbx_capi_call(struct ast_channel *c, char *idest, int timeout)
cc_mutex_unlock(&i->lock);
return error;
}
i->state = CAPI_STATE_CONNECTPENDING;
cc_mutex_unlock(&i->lock);
ast_setstate(c, AST_STATE_DIALING);
/* now we shall return .... the rest has to be done by handle_msg */
cc_mutex_unlock(&i->lock);
return 0;
}