mirror of
https://github.com/adriankumpf/tesla_auth.git
synced 2026-02-27 09:54:03 +08:00
Prevent panic when URL channel receiver is dropped
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ fn main() -> anyhow::Result<()> {
|
||||
Event::UserEvent(UserEvent::Navigation(url)) => {
|
||||
if url.to_string() != "about:blank" {
|
||||
log::debug!("URL changed: {url}");
|
||||
tx.send(url).unwrap();
|
||||
let _ = tx.send(url);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user