Dropping driver without quiting hangs the process
This commit is contained in:
parent
b4192a2edc
commit
d713637efb
1 changed files with 5 additions and 1 deletions
|
@ -102,7 +102,11 @@ async fn update_loop(mut rx: Receiver<()>) -> Result<()> {
|
||||||
|
|
||||||
// Go to the My Autarco site and login
|
// Go to the My Autarco site and login
|
||||||
println!("⚡ Logging in...");
|
println!("⚡ Logging in...");
|
||||||
login(&driver).await.expect("Failed to log in");
|
// FIXME: Just dropping the driver hangs the process?
|
||||||
|
if let Err(e) = login(&driver).await {
|
||||||
|
driver.quit().await?;
|
||||||
|
return Err(e);
|
||||||
|
}
|
||||||
|
|
||||||
let mut last_updated = 0;
|
let mut last_updated = 0;
|
||||||
loop {
|
loop {
|
||||||
|
|
Reference in a new issue