Verify media cancellation without reading a closed CM handle
This commit is contained in:
1 parent
6cfd88afcf
commit
b8dd2b8cc5
1 file changed
+2
-1
@@ -559,7 +559,8 @@ static void test_cm_handle_lifetime(void) {
|
||||
int retained = dl->num_peers == 1 && dl->peers[0].cm_handle == h && dl->blocks[0].state == MD_BLK_CONN
|
||||
&& dl->blocks[1].state == MD_BLK_CONN && dl->blocks[0].holder_idx == 0 && dl->blocks[1].holder_idx == 0;
|
||||
md_dl_conn_cb(h, 0x1111, dl->group_id, CONN_EVENT_TIMEOUT, dl);
|
||||
int closed = h->closed && !h->deliver_up_token && !dl->peers[0].cm_handle;
|
||||
/* После close handle недействителен: проверяем владельца и отсутствие позднего UP. */
|
||||
int closed = !dl->peers[0].cm_handle;
|
||||
uasync_poll(g_ua, 0);
|
||||
int processed = !dl->pump_timer && dl->blocks[0].state == MD_BLK_REQ && dl->blocks[1].state == MD_BLK_REQ;
|
||||
free_test_dl(inst, dl); sqlite3_close(db); u_free(inst);
|
||||
|
||||
Reference in new issue
Block a user