lib/fetching/sourceToChannel.js
/**
 * Disables the Channel corresponding to the given Source.
 */
Disables the Channel corresponding to the given Source.
Disables the Channel corresponding to the given Source .
async function disableChannel(source) {
    const { _id: sourceID } = source;
    const channelID = sourceChannelJoin[sourceID];
    const channel = downstream.channel(channelID);
    channel.enabled = false;
    if (isFetching()) {
        await channel.stop();
    }
}
async function disableChannel ( source ) { const { _id : sourceID } = source ; const channelID = sourceChannelJoin [ sourceID ] ; const channel = downstream . channel ( channelID ) ; channel . enabled = false ; if ( isFetching ( ) ) { await channel . stop ( ) ; } }
Disables the Channel corresponding to the given Source.
Disables the Channel corresponding to the given Source .