darkfi::net::session

Function remove_sub_on_stop

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

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