Tolerate double `.remove()`s of stream on portal teardowns
							parent
							
								
									931b20cf35
								
							
						
					
					
						commit
						7b4049198a
					
				|  | @ -601,7 +601,14 @@ class Context: | ||||||
| 
 | 
 | ||||||
|             finally: |             finally: | ||||||
|                 if self._portal: |                 if self._portal: | ||||||
|                     self._portal._streams.remove(rchan) |                     try: | ||||||
|  |                         self._portal._streams.remove(stream) | ||||||
|  |                     except KeyError: | ||||||
|  |                         log.warning( | ||||||
|  |                             f'Stream was already destroyed?\n' | ||||||
|  |                             f'actor: {self.chan.uid}\n' | ||||||
|  |                             f'ctx id: {self.cid}' | ||||||
|  |                         ) | ||||||
| 
 | 
 | ||||||
|     async def result(self) -> Any: |     async def result(self) -> Any: | ||||||
|         ''' |         ''' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue