Add an assert to avoid future mistakes

This commit is contained in:
Andreas Öman 2009-03-01 18:38:34 +00:00
parent f965402a42
commit 4b57b2ecc8

View file

@ -368,6 +368,8 @@ transport_find(channel_t *ch, unsigned int weight)
if(!t->tht_disabled && t->tht_quality_index(t) > 10)
vec[i++] = t;
assert(i == cnt);
/* Sort transports, lower priority should come come earlier in the vector
(i.e. it will be more favoured when selecting a transport */