Function darkfi::net::session::remove_sub_on_stop

source ยท
pub async fn remove_sub_on_stop(
    p2p: P2pPtr,
    channel: ChannelPtr,
    type_id: SessionBitFlag,
    stop_sub: Result<Subscription<Error>>,
)
Expand description

Removes channel from the list of connected channels when a stop signal is received.