From 8c0542fdecaca8d072197a3a5767782b815b4493 Mon Sep 17 00:00:00 2001 From: Kai Jan Kriegel Date: Sat, 18 Mar 2023 17:18:07 +0100 Subject: [PATCH] set prodable interface when in use --- bffhd/capnp/machine.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bffhd/capnp/machine.rs b/bffhd/capnp/machine.rs index 18e8670..2f72290 100644 --- a/bffhd/capnp/machine.rs +++ b/bffhd/capnp/machine.rs @@ -54,9 +54,6 @@ impl Machine { } { builder.set_use(capnp_rpc::new_client(self.clone())); - if self.resource.get_description().prodable { - builder.set_prodable(capnp_rpc::new_client(self.clone())); - } } if self.session.has_manage(&self.resource) { @@ -72,6 +69,9 @@ impl Machine { ArchivedStatus::InUse(owner) => { if owner == &user { builder.set_inuse(capnp_rpc::new_client(self.clone())); + if self.resource.get_description().prodable { + builder.set_prodable(capnp_rpc::new_client(self.clone())); + } } MachineState::InUse }