client-core: fix bug with force-register-gateway (#2844)

This commit is contained in:
Jon Häggblad
2023-01-13 15:43:29 +01:00
committed by GitHub
parent ea95288940
commit bc3fd236d8
+1 -1
View File
@@ -124,7 +124,7 @@ where
// If we are not registering, just return this and assume the caller has the keys already and
// wants to keep the,
if user_chosen_gateway_id.is_some() {
if !register_gateway && user_chosen_gateway_id.is_some() {
println!("Using gateway provided by user, keeping existing keys");
return Ok(gateway.into());
}