CORD-3152 all xos-tosca secure connections are considered previously connected

Change-Id: I3a25d6a0323d6a3fd6e3f77afb910de199a59f76
diff --git a/src/grpc_client/main.py b/src/grpc_client/main.py
index bf866bf..3633797 100644
--- a/src/grpc_client/main.py
+++ b/src/grpc_client/main.py
@@ -72,6 +72,9 @@
             local_cert = Config.get('local_cert')
             client = SecureClient(endpoint=self.grpc_secure_endpoint, username=username, password=password, cacert=local_cert)
             client.restart_on_disconnect = True
+            # SecureClient is preceeded by an insecure client, so treat all secure clients as previously connected
+            # See CORD-3152
+            client.was_connected = True
             client.set_reconnect_callback(functools.partial(self.setup_resources, client, key, deferred, recipe))
             client.start()
         return deferred