Ticket #343: Canceling pending ioqueue operation in Symbian causes assertion failure
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1384 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
42d5aaa7ee
commit
593ccc65b5
1 changed files with 4 additions and 1 deletions
|
@ -387,6 +387,7 @@ void CIoqueueCallback::DoCancel()
|
|||
sock_->Socket().CancelAccept();
|
||||
|
||||
type_ = TYPE_NONE;
|
||||
pending_data_.common_.op_key_ = NULL;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -397,13 +398,15 @@ void CIoqueueCallback::CancelOperation(pj_ioqueue_op_key_t *op_key,
|
|||
{
|
||||
Type cur_type = type_;
|
||||
|
||||
pj_assert(op_key == pending_data_.common_.op_key_);
|
||||
|
||||
Cancel();
|
||||
|
||||
if (cur_type == TYPE_READ) {
|
||||
if (cb_.on_read_complete)
|
||||
cb_.on_read_complete(key_, op_key, bytes_status);
|
||||
} else if (cur_type == TYPE_ACCEPT)
|
||||
;
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue