Skip to content

Commit

Permalink
Merge pull request #274 from Schmiddiii/ws-is-used
Browse files Browse the repository at this point in the history
Expose SignalWebSocket::is_used
  • Loading branch information
rubdos authored Jan 3, 2024
2 parents 1858813 + 1561b75 commit 9d55add
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 9d55add

Please sign in to comment.