

def closeConnection_jdbc():
    logger = logging.getLogger(__name__)
    try:
        _ = threadVar.connection
    except:
        threadVar.connection = None
    if ((threadVar.connection is not None) and (threadVar.connection.closed == False)):
        threadVar.connection.close()
        logger.info('Disconnect meta database.')
        threadVar.connection = None

dataset/ETHPy150Open harryliu/edwin/edwinServer/common/database_meta.py closeConnection_jdbc/original