mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-16 02:51:27 +03:00
hotfix: race condition when activating clients
This commit is contained in:
@@ -67,8 +67,8 @@ impl Window {
|
|||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
let client = client.downcast_ref::<ClientObject>().unwrap();
|
let client = client.downcast_ref::<ClientObject>().unwrap();
|
||||||
|
window.request_client_activate(client, active);
|
||||||
window.request_client_update(client);
|
window.request_client_update(client);
|
||||||
window.request_client_activate(client, active)
|
|
||||||
}));
|
}));
|
||||||
row.connect_closure("request-delete", false, closure_local!(@strong window => move |row: ClientRow| {
|
row.connect_closure("request-delete", false, closure_local!(@strong window => move |row: ClientRow| {
|
||||||
let index = row.index() as u32;
|
let index = row.index() as u32;
|
||||||
@@ -177,7 +177,7 @@ impl Window {
|
|||||||
|
|
||||||
if state.resolving != data.resolving {
|
if state.resolving != data.resolving {
|
||||||
client_object.set_resolving(state.resolving);
|
client_object.set_resolving(state.resolving);
|
||||||
log::debug!("resolving {}: {}", data.handle, state.active);
|
log::debug!("resolving {}: {}", data.handle, state.resolving);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.update_dns_state(handle, !state.ips.is_empty());
|
self.update_dns_state(handle, !state.ips.is_empty());
|
||||||
|
|||||||
Reference in New Issue
Block a user