Skip to content

Commit

Permalink
sdk: close negentropy reconciliation when terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Sep 28, 2023
1 parent fe4b809 commit a542ea6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/nostr-sdk/src/relay/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,11 @@ impl Relay {
}
}

let close_msg = ClientMessage::NegClose {
subscription_id: sub_id,
};
self.send_msg(close_msg, None).await?;

Ok(())
}
}

0 comments on commit a542ea6

Please sign in to comment.