Juan Hernandez has uploaded a new change for review. Change subject: codegen: Disconnect-at-constructor only if proxy found ......................................................................
codegen: Disconnect-at-constructor only if proxy found Change-Id: I14e8e8ca00a99263227053a47129b93bcb27b7d1 Related: https://bugzilla.redhat.com/996021 Signed-off-by: Yedidyah Bar David <[email protected]> (cherry picked from commit c625968c014cbf00535c83fad2e960a9597615e3) --- M generator/src/main/java/org/ovirt/engine/sdk/generator/rsdl/templates/EntryPointTemplate 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/20/31720/1 diff --git a/generator/src/main/java/org/ovirt/engine/sdk/generator/rsdl/templates/EntryPointTemplate b/generator/src/main/java/org/ovirt/engine/sdk/generator/rsdl/templates/EntryPointTemplate index fa765aa..a5e1dee 100644 --- a/generator/src/main/java/org/ovirt/engine/sdk/generator/rsdl/templates/EntryPointTemplate +++ b/generator/src/main/java/org/ovirt/engine/sdk/generator/rsdl/templates/EntryPointTemplate @@ -36,7 +36,7 @@ # Implicitly disconnect and perform cleanup # when detected instance of the SDK proxy with # ref-count == 0 - if context.manager.has_key(self.__id): + if context.manager.has_key(self.__id) and context.manager[self.__id].get('proxy') is not None: try: self.disconnect() except DisconnectedError: -- To view, visit http://gerrit.ovirt.org/31720 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I14e8e8ca00a99263227053a47129b93bcb27b7d1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk Gerrit-Branch: sdk_3.5 Gerrit-Owner: Juan Hernandez <[email protected]> Gerrit-Reviewer: Yedidyah Bar David <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
