diff --git a/lbrynet/blob_exchange/server.py b/lbrynet/blob_exchange/server.py index 0ddcbc875..32cdf51fe 100644 --- a/lbrynet/blob_exchange/server.py +++ b/lbrynet/blob_exchange/server.py @@ -61,6 +61,8 @@ class BlobServerProtocol(asyncio.Protocol): try: sent = await blob.sendfile(self) except (ConnectionResetError, BrokenPipeError, RuntimeError, OSError): + if self.transport: + self.transport.close() return log.info("sent %s (%i bytes) to %s:%i", blob.blob_hash[:8], sent, peer_address, peer_port) if responses: