    def terminate(self):
        '''
        @brief: 释放资源
        '''
        tarsLogger.debug('AdapterProxyManager:terminate')
        # self.__lock.acquire()
        lock = LockGuard(self.__newLock)
        for ep, epinfo in self.__adps.items():
            epinfo[1].terminate()
        self.__adps = {}
        self.__lock.release()
@brief: 释放资源
biliup/Danmaku/tars/__adapterproxy.py