@synchronized(mlock)
    def eDisconnect(self):
        #  not connected?
        if self.m_dos is None:
            return
        self.m_connected = False
        self.m_serverVersion = 0
        self.m_TwsTime = ""
        self.m_dos = None
        reader = self.m_reader
        self.m_reader = None
        socket = self.m_socket
        self.m_socket = None
        try:
            #  stop reader thread
            if reader is not None:
                reader.interrupt()
        except Exception as e:
            pass
        try:
            #  close socket
            if socket is not None:
                socket.disconnect()
        except Exception as e:
            pass
generated source for method eDisconnect
dataset/ETHPy150Open CarterBain/Medici/ib/ext/EClientSocket.py/EClientSocket.eDisconnect