Skip to content

Commit

Permalink
use Arc clone
Browse files Browse the repository at this point in the history
Signed-off-by: Vrtgs <mirza123.the.best@gmail.com>
  • Loading branch information
Vrtgs committed Oct 21, 2024
1 parent 9b7838d commit 8fa53e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thirtyfour/src/session/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1190,11 +1190,11 @@ impl Drop for SessionHandle {
);

let mut this = Self {
client: self.client.clone(),
server_url: self.server_url.clone(),
client: Arc::clone(&self.client),
server_url: Arc::clone(&self.server_url),
quit: Arc::clone(&self.quit),
session_id: self.session_id.clone(),
config: self.config.clone(),
quit: Arc::clone(&self.quit),
};
support::spawn_blocked_future(|spawned| async move {
if spawned {
Expand Down

0 comments on commit 8fa53e0

Please sign in to comment.