-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kdeconnect: choose the first avilable device #1792
Conversation
@MaxVerevkin is this the correct direction to go for? I am a bit unsure if all the cases are handles. |
I think a better way to organize things is to do something similar to |
3151439
to
a59ccac
Compare
@MaxVerevkin I organized |
When device is not found, the block should wait until a new device is added, then it can try searching again. Right now there is a tight loop which maxes the CPU usage... And to be honest, I don't quite understand why I decided to use a tokio task + channels to watch for updates when I was porting this block. It doesn't make sense. Instead a |
3699ccc
to
a35458d
Compare
Signed-off-by: omkar-mohanty <[email protected]>
This reverts commit b97f3ab.
7322aac
to
3e94f91
Compare
@MaxVerevkin for some reason |
|
@MaxVerevkin is the PR close to what you have in mind? |
@omkar-mohanty CPU usage is still 100% |
Signed-off-by: omkar-mohanty <[email protected]> kdeconnect: implement display Signed-off-by: omkar-mohanty <[email protected]>
Now CPU usage is 100% even if the device is available |
Fixes #1612