'generated source for method eDisconnect'

@synchronized(mlock)
def eDisconnect(self):

    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:
        if (reader is not None):
            reader.interrupt()
    except Exception as e:
        pass
    try:
        if (socket is not None):
            socket.disconnect()
    except Exception as e:
        pass
