nghttpx: Add additional assert just in case

This commit is contained in:
Tatsuhiro Tsujikawa 2015-07-16 00:01:26 +09:00
parent 3396c71c3c
commit 2bac00ea5f
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ Downstream *DownstreamQueue::remove_and_get_blocked(Downstream *downstream) {
}
auto next_downstream = link->downstream;
next_downstream->detach_blocked_link();
auto link2 = next_downstream->detach_blocked_link();
assert(link2 == link);
ent.blocked.remove(link);
delete link;
remove_host_entry_if_empty(ent, host_entries_, host);