

def connectionLost(self, reason):
    self.disconnected = True
    _reader = self._reader
    _writer = self._writer
    protocol = self.protocol
    self._reader = self._writer = None
    self.protocol = None
    if ((_writer is not None) and (not _writer.disconnected)):
        _writer.connectionLost(reason)
    if ((_reader is not None) and (not _reader.disconnected)):
        _reader.connectionLost(_writer)
    try:
        protocol.connectionLost(reason)
    except:
        log.err()

dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/internet/_posixstdio.py StandardIO.connectionLost/VarMisuse@102/126 `reason`->`_writer`