Make 'pending reset' streams not count towards active streams
This commit is contained in:
		| @@ -746,11 +746,17 @@ where | ||||
|         Ok(()) | ||||
|     } | ||||
|  | ||||
|     #[cfg(feature = "unstable")] | ||||
|     pub fn num_active_streams(&self) -> usize { | ||||
|         let me = self.inner.lock().unwrap(); | ||||
|         me.store.num_active_streams() | ||||
|     } | ||||
|  | ||||
|     pub fn has_streams(&self) -> bool { | ||||
|         let me = self.inner.lock().unwrap(); | ||||
|         me.counts.has_streams() | ||||
|     } | ||||
|  | ||||
|     pub fn has_streams_or_other_references(&self) -> bool { | ||||
|         let me = self.inner.lock().unwrap(); | ||||
|         me.counts.has_streams() || me.refs > 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user