Skip to content

Commit

Permalink
Expose SignalWebSocket::is_used
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmiddiii committed Dec 30, 2023
1 parent 0a7987e commit 1561b75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libsignal-service/src/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ impl SignalWebSocket {
self.request_sink.is_closed()
}

pub fn is_used(&self) -> bool {
self.inner_locked().stream.is_none()
}

pub(crate) fn take_request_stream(
&mut self,
) -> Option<SignalRequestStream> {
Expand Down

0 comments on commit 1561b75

Please sign in to comment.