mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-18 03:21:28 +03:00
fix initial activation
This commit is contained in:
@@ -143,6 +143,10 @@ impl Service {
|
|||||||
|
|
||||||
pub async fn run(&mut self) -> Result<(), ServiceError> {
|
pub async fn run(&mut self) -> Result<(), ServiceError> {
|
||||||
for handle in self.client_manager.active_clients() {
|
for handle in self.client_manager.active_clients() {
|
||||||
|
// small hack: `activate_client()` checks, if the client
|
||||||
|
// is already active in client_manager and does not create a
|
||||||
|
// capture barrier in that case so we have to deactivate it first
|
||||||
|
self.client_manager.deactivate_client(handle);
|
||||||
self.activate_client(handle);
|
self.activate_client(handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user