summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci_gateway/cpp/sci_sym_openclose.cpp4
1 files changed, 1 insertions, 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");