cleanup a couple unnecessary drop(g) calls
This commit is contained in:
parent
5df342e442
commit
0a92cf1d65
1 changed files with 0 additions and 2 deletions
|
|
@ -306,7 +306,6 @@ impl ManagedTorrent {
|
||||||
}
|
}
|
||||||
ManagedTorrentState::Initializing(init) => {
|
ManagedTorrentState::Initializing(init) => {
|
||||||
let init = init.clone();
|
let init = init.clone();
|
||||||
drop(g);
|
|
||||||
let t = t.clone();
|
let t = t.clone();
|
||||||
let span = t.shared().span.clone();
|
let span = t.shared().span.clone();
|
||||||
let token = token.clone();
|
let token = token.clone();
|
||||||
|
|
@ -355,7 +354,6 @@ impl ManagedTorrent {
|
||||||
let live = TorrentStateLive::new(paused, tx, token.clone())?;
|
let live = TorrentStateLive::new(paused, tx, token.clone())?;
|
||||||
g.state = ManagedTorrentState::Live(live.clone());
|
g.state = ManagedTorrentState::Live(live.clone());
|
||||||
t.state_change_notify.notify_waiters();
|
t.state_change_notify.notify_waiters();
|
||||||
drop(g);
|
|
||||||
|
|
||||||
spawn_fatal_errors_receiver(t, rx, token);
|
spawn_fatal_errors_receiver(t, rx, token);
|
||||||
if let Some(peer_rx) = peer_rx {
|
if let Some(peer_rx) = peer_rx {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue