File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -592,13 +592,19 @@ impl<T: Serialize> Stream for Receiver<T> {
592
592
fn poll_next ( mut self : Pin < & mut Self > , cx : & mut Context ) -> Poll < Option < Self :: Item > > {
593
593
debug ! (
594
594
"Receiver:poll_next channel {}, length: {}" ,
595
- self . channel. name, self . channel. name
595
+ self . channel. name, self . channel. len ( )
596
596
) ;
597
597
loop {
598
598
if let Some ( listener) = self . listener . as_mut ( ) {
599
599
match Pin :: new ( listener) . poll ( cx) {
600
- Poll :: Ready ( ( ) ) => self . listener = None ,
601
- Poll :: Pending => return Poll :: Pending ,
600
+ Poll :: Ready ( ( ) ) => {
601
+ debug ! ( "Receiver:poll_next channel {}, listener Poll::Ready, listener = None" , self . channel. name) ;
602
+ self . listener = None ;
603
+ } ,
604
+ Poll :: Pending => {
605
+ debug ! ( "Receiver:poll_next channel {}, listener Poll::Pending" , self . channel. name) ;
606
+ return Poll :: Pending ;
607
+ } ,
602
608
}
603
609
}
604
610
You can’t perform that action at this time.
0 commit comments