1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 14:21:03 +02:00

fix(keys): high cpu usage

Fixes #834
This commit is contained in:
Jake Stanger 2025-01-06 22:13:48 +00:00
parent 0b4d868134
commit e0bae2c0af
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -217,6 +217,9 @@ impl Client {
_ => {}
}
}
// we need to sleep for a short period to avoid hogging cpu
std::thread::sleep(Duration::from_millis(20));
}
}