mirror of
https://github.com/librespot-org/librespot.git
synced 2025-01-27 17:44:04 +00:00
Fix up for #1178
sys.uptime() returns sec not mins so it should be 60 not 1.
This commit is contained in:
parent
c4dc7347c7
commit
3dafb5904e
1 changed files with 1 additions and 1 deletions
|
@ -1757,7 +1757,7 @@ async fn main() {
|
|||
Err(e) => {
|
||||
sys.refresh_processes();
|
||||
|
||||
if sys.uptime() <= 1 {
|
||||
if sys.uptime() <= 60 {
|
||||
debug!("Retrying to initialise discovery: {e}");
|
||||
tokio::time::sleep(DISCOVERY_RETRY_TIMEOUT).await;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue