summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-07-29 21:18:11 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-07-29 21:18:11 +0200
commit6e6ad7bf49f3517c2e8f69e6376a601aa404f668 (patch)
treeeb7a18fe4715c912c216f661ebba04bcf4f16d8b
parent89168ff11d4adb4ca51fe14e7d54fb2d69d392a8 (diff)
fix: close driver before close the running software
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 220b7ce..5dc7607 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -44,5 +44,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.await;
log::info!("Closing bot... Goodbye!");
+ driver.quit().await?;
+
Ok(())
}