Fix bug where _unblock() would fail on a stopped thread
This commit is contained in:
		@@ -43,6 +43,6 @@ class PipeWriterThread(Thread):
 | 
			
		||||
 | 
			
		||||
    def _unblock(self):
 | 
			
		||||
        self._write_queue.push_front(None)
 | 
			
		||||
        with suppress(OSError):
 | 
			
		||||
        with suppress(OSError, TypeError):
 | 
			
		||||
            while read(self._drain_fd, 65536):
 | 
			
		||||
                pass
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user