mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-20 11:43:19 +03:00
ignore port change if same port
This commit is contained in:
@@ -173,7 +173,13 @@ impl Service {
|
|||||||
self.deactivate_client(&capture, handle);
|
self.deactivate_client(&capture, handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
FrontendRequest::ChangePort(port) => emulation.request_port_change(port),
|
FrontendRequest::ChangePort(port) => {
|
||||||
|
if self.port.get() != port {
|
||||||
|
emulation.request_port_change(port);
|
||||||
|
} else {
|
||||||
|
self.notify_frontend(FrontendEvent::PortChanged(self.port.get(), None));
|
||||||
|
}
|
||||||
|
}
|
||||||
FrontendRequest::Delete(handle) => {
|
FrontendRequest::Delete(handle) => {
|
||||||
self.remove_client(&capture, handle);
|
self.remove_client(&capture, handle);
|
||||||
self.notify_frontend(FrontendEvent::Deleted(handle));
|
self.notify_frontend(FrontendEvent::Deleted(handle));
|
||||||
|
|||||||
Reference in New Issue
Block a user