do a clear teardown of tokio runtime

This commit is contained in:
Marcel Märtens 2021-03-29 10:34:33 +02:00
parent 9df3004843
commit e7452aa7ab

View File

@ -115,6 +115,7 @@ impl ClientInit {
break 'tries; break 'tries;
} }
let _ = tx.send(Msg::Done(Ok(client))); let _ = tx.send(Msg::Done(Ok(client)));
tokio::task::block_in_place(move || drop(runtime2));
return; return;
}, },
Err(ClientError::NetworkErr(NetworkError::ConnectFailed( Err(ClientError::NetworkErr(NetworkError::ConnectFailed(