From 074e1265a52f7b1e0cdba8845f62e786fc3848c4 Mon Sep 17 00:00:00 2001 From: Georgey Date: Wed, 15 Mar 2017 11:59:44 +0530 Subject: Removed 'Symphony environment is already initialized message' --- sci_gateway/cpp/sci_sym_openclose.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sci_gateway/cpp/sci_sym_openclose.cpp b/sci_gateway/cpp/sci_sym_openclose.cpp index f77a98b..90bfe75 100644 --- a/sci_gateway/cpp/sci_sym_openclose.cpp +++ b/sci_gateway/cpp/sci_sym_openclose.cpp @@ -35,9 +35,7 @@ int sci_sym_open(char *fname, unsigned long fname_len){ CheckOutputArgument(pvApiCtx, 1, 1) ;//one output argument //check environment - if(global_sym_env!=NULL){ - sciprint("Warning: Symphony environment is already initialized.\n"); - }else{ + if(global_sym_env==NULL){ global_sym_env = sym_open_environment();//open an environment if (!global_sym_env) sciprint("Error: Unable to create symphony environment.\n"); -- cgit