diff --git a/crates/librqbit/src/torrent_state/mod.rs b/crates/librqbit/src/torrent_state/mod.rs index 3cefaa3..e559be5 100644 --- a/crates/librqbit/src/torrent_state/mod.rs +++ b/crates/librqbit/src/torrent_state/mod.rs @@ -306,7 +306,6 @@ impl ManagedTorrent { } ManagedTorrentState::Initializing(init) => { let init = init.clone(); - drop(g); let t = t.clone(); let span = t.shared().span.clone(); let token = token.clone(); @@ -355,7 +354,6 @@ impl ManagedTorrent { let live = TorrentStateLive::new(paused, tx, token.clone())?; g.state = ManagedTorrentState::Live(live.clone()); t.state_change_notify.notify_waiters(); - drop(g); spawn_fatal_errors_receiver(t, rx, token); if let Some(peer_rx) = peer_rx {