Fix panics from spawn_local tasks dropped on other threads in remote server (#21022)
Closes #21020 Release Notes: - Fixed remote server panic of "local task dropped by a thread that didn't spawn it"
This commit is contained in:
parent
af34953bc3
commit
f74f670865
1 changed files with 1 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ impl SshRemoteClient {
|
||||||
c.connections.insert(
|
c.connections.insert(
|
||||||
opts.clone(),
|
opts.clone(),
|
||||||
ConnectionPoolEntry::Connecting(
|
ConnectionPoolEntry::Connecting(
|
||||||
cx.foreground_executor()
|
cx.background_executor()
|
||||||
.spawn({
|
.spawn({
|
||||||
let connection = connection.clone();
|
let connection = connection.clone();
|
||||||
async move { Ok(connection.clone()) }
|
async move { Ok(connection.clone()) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue