'generated source for method run'

def run(self):

    try:
        while ((not self.isInterrupted()) and self.processMsg(self.readInt())):
            pass
    except Exception as ex:
        if self.parent().isConnected():
            self.eWrapper().error(ex)
    if self.parent().isConnected():
        self.m_parent.close()
    try:
        self.m_dis.close()
        self.m_dis = None
    except Exception as e:
        pass
