devstream: fix mistake

This commit is contained in:
cinap_lenrek 2015-07-19 03:36:53 +02:00
parent 64136bfd16
commit 157b7751e7

View file

@ -425,7 +425,7 @@ streamdrain(Chan *c)
qunlock(&s->wql);
nexterror();
}
while(!streamdrained(s))
while(!isdrained(s))
sleep(&s->wz, isdrained, s);
qunlock(&s->wql);
poperror();