From 2bd5b441792dd7f616e30cfd38ce0c630a902d5d Mon Sep 17 00:00:00 2001 From: Tipragot Date: Mon, 12 Feb 2024 03:08:57 +0100 Subject: [PATCH] dqsdqsd --- crates/relay-client/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/relay-client/src/lib.rs b/crates/relay-client/src/lib.rs index ba6e23a..267f086 100644 --- a/crates/relay-client/src/lib.rs +++ b/crates/relay-client/src/lib.rs @@ -242,6 +242,8 @@ impl Connection { /// This function will connect to the relay server if it's not already /// connected, and will send and receive messages from the relay server /// if it's connected. + /// + /// This function will not block the current thread. pub fn update(&mut self) { self.state = match std::mem::replace(&mut self.state, ConnectionState::Disconnected) { ConnectionState::Disconnected => self.create_stream(),