def close(self):
        if self.status == CLOSED:
            return
        self.status = CLOSED
        if self.heartbeat_loop_greenlet:
            self.heartbeat_loop_greenlet.kill()
            self.live_check_loop_greenlet.kill()
        self.server.disconnect(self.endpoint)
dataset/ETHPy150Open deliveryhero/lymph/lymph/core/connection.py/Connection.close/original