function updateOPCUASubscriberSetStatus()

in greengrass-opcua-adapter-nodejs/index.js [97:109]


function updateOPCUASubscriberSetStatus()
{
    if (OPCUASubscriberSet.length > 0) {
        let index = 0;
        for (index = 0; index < OPCUASubscriberSet.length; index += 1) {
            if (OPCUASubscriberSet[index]._session &&
                OPCUASubscriberSet[index]._session._closed === true) {
                OPCUASubscriberSet.splice(index, 1);
                index -= 1;
            }
        }
    }
}