mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	asyncio: Fix _ProactorWritePipeTransport._pipe_closed()
The "exc" variable was not defined, pass a BrokenPipeError exception instead.
This commit is contained in:
		
							parent
							
								
									cdb476bd43
								
							
						
					
					
						commit
						2c7203c6f5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -275,7 +275,7 @@ def _pipe_closed(self, fut): | ||||||
|         assert fut is self._read_fut, (fut, self._read_fut) |         assert fut is self._read_fut, (fut, self._read_fut) | ||||||
|         self._read_fut = None |         self._read_fut = None | ||||||
|         if self._write_fut is not None: |         if self._write_fut is not None: | ||||||
|             self._force_close(exc) |             self._force_close(BrokenPipeError()) | ||||||
|         else: |         else: | ||||||
|             self.close() |             self.close() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner